This example looks at the dot graph drawing functionality, only available in python.
View output (PDF) | source (python)
25 from casadi.tools
import *
34 c = c - b/ sqrt(fabs(c))
41 dotdraw(SX.sym(
"x",Sparsity.lower(3)))
43 dotdraw(SX.sym(
"x",Sparsity.lower(3))**2)
47 x = MX.sym(
"x",Sparsity.lower(2))
48 y = MX.sym(
"y",Sparsity.lower(2))
56 f = Function(
"magic", [z,y],[z+x[0,0],x-y],{
"allow_free":
True})
58 z,z2 = f(vertcat(x,y),zz.T)
60 z = z[:2,:] +x + cos(x) - sin(x) / tan(z2)