This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / integrate / _bvp / modify_mesh

function

scipy.integrate._bvp:modify_mesh

source: build-install/usr/lib/python3.14/site-packages/scipy/integrate/_bvp.py:603

Signature

def modify_mesh(x, insert_1, insert_2)

Summary

Insert nodes into a mesh.

Extended Summary

Nodes removal logic is not established, its impact on the solver is presumably negligible. So, only insertion is done in this function.

Parameters

x : ndarray, shape (m,)

Mesh nodes.

insert_1 : ndarray

Intervals to each insert 1 new node in the middle.

insert_2 : ndarray

Intervals to each insert 2 new nodes, such that divide an interval into 3 equal parts.

Returns

x_new : ndarray

New mesh nodes.

Notes

insert_1 and insert_2 should not have common values.

Aliases

  • scipy.integrate._bvp.modify_mesh