Page 1 of 1

Finding local max, min, and saddle points

Unread postPosted: 06 Jun 2013, 20:07
by engenheiro civil
Code: Select all
Define ext()=
Prgm
Local fx,fy,fxx,fyy,f1,po,x,y
Disp "Finding local max, min, and saddle points"
Request "Type function",f1
fx:=d/dx(f1,x)
fy:=d/dy(f1,y)

Now how can I do
Code: Select all
solve(system(f1=0,f2=0),{x,y}) and put in a two distinct variables


Would be with a matrices or a list?
And how to do?
Im not finish but I am not knowing where to go from here

TY for any help…
Code: Select all
Disp x
Disp y
Disp "Partial in terms of X : ",fx
Disp "Partial in terms of Y: ",fy
EndPrgm

Re: Finding local max, min, and saddle points

Unread postPosted: 06 Jun 2013, 21:21
by critor
Try nsolve instead of solve for example.

It doesn't return an expression but a list.

Re: Finding local max, min, and saddle points

Unread postPosted: 06 Jun 2013, 21:58
by Bisam
You can also use "expr>list" which takes an answer from "solve" and converts it to a list of all the possible solutions (the "list" being a matrix if the "solve" was on multiple variables).