Post Reply 
SOLVE for Function Vectors
05-28-2018, 09:40 AM
Post: #4
RE: SOLVE for Function Vectors
Greetings from a fellow chemical engineer,

Have you considered returning a list instead of a vector? An example of code returning a list:

Code:
EXPORT PUMP1NPSH(q)
BEGIN
 LOCAL temp;
 temp:=q^4-q^3+q^2+2*q+3;
 return {temp,2*temp,3*temp,4*temp};
END;

If that is your program, then:

fsolve(((PUMP1NPSH(x))(1)) = 500,x = 3)

will return 4.91058632644

-road
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
SOLVE for Function Vectors - NomadVehr - 05-26-2018, 10:51 PM
RE: SOLVE for Function Vectors - mfleming - 05-27-2018, 06:17 AM
RE: SOLVE for Function Vectors - NomadVehr - 05-27-2018, 08:25 PM
RE: SOLVE for Function Vectors - roadrunner - 05-28-2018 09:40 AM
RE: SOLVE for Function Vectors - NomadVehr - 05-29-2018, 04:39 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-01-2018, 02:40 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-02-2018, 05:16 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-04-2018, 08:10 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-05-2018, 03:21 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-05-2018, 07:50 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-10-2018, 03:26 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-06-2018, 05:46 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-10-2018, 04:04 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-10-2018, 05:01 PM
RE: SOLVE for Function Vectors - NomadVehr - 06-10-2018, 05:54 PM



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