The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
fsolve() bug?
01-10-2015, 03:52 AM
Post: #1
fsolve() bug?
fsolve([x+y=3,2*x+2*y=6,x-y=0],[x,y],[0,0]); --> invalid dimension
fsolve([x+y=3,2*x+2*y=6,x-y=0],[x,y]); --> [3/2, 3/2]
fsolve([x+y=3,x-y=0],[x,y],[0,0]); --> [1.5, 1.5]

fsolve() seems use a naive dimension check -- if the number of equations is not equal to the number of variables, then giving initial values results in invalid dimension.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
fsolve() bug? - Han - 01-10-2015 03:52 AM
RE: fsolve() bug? - parisse - 01-10-2015, 07:37 AM
RE: fsolve() bug? - Snorre - 01-10-2015, 11:18 AM
RE: fsolve() bug? - parisse - 01-10-2015, 02:51 PM



User(s) browsing this thread: 2 Guest(s)