Macaulay2 » Documentation
Packages » NumericalAlgebraicGeometry :: specialize(GateSystem,AbstractPoint)
next | previous | forward | backward | up | index | toc

specialize(GateSystem,AbstractPoint) -- specialize parameters in a gate system

Synopsis

Description

Returns a GateSystem with parameters specialized to the given values.

i1 : variables = declareVariable \ {x,y}

o1 = {x, y}

o1 : List
i2 : params = declareVariable \ {a,b}

o2 = {a, b}

o2 : List
i3 : Fab = gateSystem(matrix{params}, matrix{variables}, matrix{{a*x*y-1},{x^3+y^2-b}})

o3 = gate system: 2 input(s) ---> 2 output(s) (with 2 parameters)

o3 : GateSystem
i4 : F = specialize(Fab, point{{1,2}})

o4 = gate system: 2 input(s) ---> 2 output(s)

o4 : GateSystem
i5 : p0 = point{{0.1,0.2+ii}}

o5 = p0

o5 : Point
i6 : evaluate(F,p0)

o6 = | -1 -.959+.4ii |

                1         2
o6 : Matrix CC    <-- CC
              53        53
i7 : evaluateJacobian(F,p0)

o7 = | 0   0      |
     | .03 .4+2ii |

                2         2
o7 : Matrix CC    <-- CC
              53        53

Ways to use this method: