Post Reply 
SOLVE for Function Vectors
06-02-2018, 05:16 PM (This post was last modified: 06-02-2018 06:02 PM by NomadVehr.)
Post: #8
RE: SOLVE for Function Vectors
Thanks Roadrunner,

I finally found the workaround thanks to the print command.
While the solution you posted didn't work as expected, it helped me get to work around.

I also made an enhancement to the program where it prompts warning messages when flow is below minimum or above end of curve:

EXPORT PUMP1(X)
BEGIN
LOCAL h,a;
h:=-3.96912716744ᴇ−6*X^3+1.33502710425ᴇ−3*X^2-0.230829109114*X+187.74099966;
LOCAL Eff;
Eff:=8.58164056499ᴇ−8*X^3-1.00216261706ᴇ−3*X^2+0.480844232375*X-0.029541916438;
LOCAL PWR;
PWR:=0.25415412597*X+68.328377716;
LOCAL NPSH;
NPSH:=3.42624923327ᴇ−7*X^3-1.02340333129ᴇ−4*X^2+7.55229835063ᴇ−3*X+2.60628404048;
a:={{"h(m)",h},{"Eff(%)",Eff},{"SHP(kW)",PWR},{"NPSH(m)=",NPSH}};
IF X<80 THEN RETURN {" Warning: Flow below minimum",a};END;
IF X>340 THEN RETURN {"Warning: Flow above end of curve",a};END;
PRINT("h(m)");PRINT(h);
PRINT("Eff(%)");PRINT(Eff);
PRINT("SHP(kW");PRINT(PWR);
PRINT("NPSH(m)");PRINT(NPSH);
RETURN a;
END;

Thanks again for helping me get started,
Nomad

Nomad VeHr

HP-27, HP-67 ( both legacy), Casio FX880P, HP-35S, WP34S, DM42, HP Prime.
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 - 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: 2 Guest(s)