This example looks at the expand method
View output (PDF) | source (python)
- See also
Function expand() const
Expand a function to SX.
39 f = Function(
"f", [x,y],[z])
45 print(
"Expanded expression = ", fSX.str(
True))
53 linear_solver = Linsol(
"linear_solver",
"csparse", x.sparsity())
54 g = linear_solver.solve(x, y)
55 G = Function(
"G", [x,y], [g])
61 except Exception
as e: