Skip to content

i want to be able to sympy directly from bertini2 symbolic objects #295

Description

@ofloveandhate
J = np.array(sys.symbolic_jacobian())

pi_coeffs = bertini.random_matrix(real=True,rows=3,cols=1)

pi_as_func = ([vg] @ pi_coeffs)[0,0]
pi_as_func

J_pi = bertini.jacobian(functions=pi_as_func, variables=vg)

J_with_pi = np.vstack([J, J_pi])
J_with_pi

sympy.det(J_with_pi)

gives

SympifyError: "cannot sympify object of type <class 'bertini._pybertini.function_tree.operator.Sum'>"
bertini.sympy_bridge.to_sympy()

gives

module 'bertini' has no attribute 'sympy_bridge'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions