
×InformationFix Windows 10 Update Issues
Resolve Windows 10 related issues for your HP computers or printers by HP Windows 10 Support Center

×InformationFix Windows 10 Update Issues
Resolve Windows 10 related issues for your HP computers or printers by HP Windows 10 Support Center
 HP Community
 >
 Other Products
 >
 Calculators
 >
 Using SOLVE on Vectors
 Mark Topic as New
 Mark Topic as Read
 Float this Topic for Current User
 Bookmark
 Subscribe
 Mute
 Printer Friendly Page
Create an account on the HP Community to personalize your profile and ask a question
Solved!
Using SOLVE on Vectors
05252018 04:49 PM
After seeing the RETURN function on how to Return multiple functions of a single variable as a vector, how can I use the SOLVE function on this vector.
Let´s say I made a program that returns VECTOR(x) expressed as [a(x),b(x),c(x)]
Assuming at any given time that I know the value of a(x), b(x) or c(x), what would be the sintaxis for solving VECTOR(x) for x?
Solved! Go to Solution.
05282018 02:32 PM
Do I understand you well that you want to solve:
VECTOR(x)=[0,0,0] ?
That would mean that
a(x)=0
b(x)=0
c(x)=0
These are 3 equations with 1 unknown, which has generally no solution.
For example,
When
a(x)=x+3
b(x)=x+5
c(x)=x+9
There is no such solution.
05292018 12:59 PM
For those following this thread, please note that this question was asked and answered here: http://www.hpmuseum.org/forum/thread10807post98343.html#pid98343
06012018 08:39 AM  edited 06022018 12:02 PM
Thanks Joe!
That was actually me. Here´s the final code. The solution was using a list instead of a vector.
Update 612018 included warning messages for low and high flows.
BEGIN
LOCAL h,a;
h:=3.96912716744ᴇ−6*X^3+1.33502710425ᴇ−3*X^20.230829109114*X+187.74099966;
LOCAL Eff;
Eff:=8.58164056499ᴇ−8*X^31.00216261706ᴇ−3*X^2+0.480844232375*X0.029541916438;
LOCAL PWR;
PWR:=0.25415412597*X+68.328377716;
LOCAL NPSH;
NPSH:=3.42624923327ᴇ−7*X^31.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;
06062018 01:14 PM
I found another approach which is copying the 2 variable statistics app and renaming it after the Pump.
For the app follow the link
http://www.hpmuseum.org/forum/thread10807post98863.html#pid98863
Didn't find what you were looking for? Ask the community