I'm a nubie to palm, and am having trouble with solver;
I want to calc a manually defined function with two variables, but solver only seems to show one variable as undefined.
Can anyone help as to how to input a fn with 2 variables??
i.e. I inputted:
((t+273)/293)*(760/p)
it accepts t, but ignored p...
thanks
marko
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-03-16
If you want to calculate with units the easiest way is to create a function of a complex variable reduce(x)="real(x(1))+sneg(imag(x(1))*(-1+x(2)*i)+div(imag(x(1)):x(2))+i*mod(imag(x(1))):x((2))"
where sneg(x)="-sign(x-abs(x))"
div(x)="part(x(1)/x(2)))"
mod(x)="fpart(x(1)/x(2))*x(2)"
Note that real and imag are built-in functions.
Watch the brackets!
Usage: take 20 ft. 15in. with 12 in.= 1ft.
reduce (20+15i:12)=21+3i (or 21ft.3in.)
You can also define functions like:
foot(x)=reduce(x(1):12) so
foot(20+15i)=21+3i
or pound(x)=reduce(x(1):16)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like the ability to work with actual units, such as the entry:
"1[m/s]*2[s^-1]*30[kg]" which would display "60[kg*m/s^2]"
and with built in constants(value and unit), you could do:
"1[kg]*c^2" (c being the speed of light) would be "90E15[kg*m^2/s^2 (or N)]
What say you?
I'm a nubie to palm, and am having trouble with solver;
I want to calc a manually defined function with two variables, but solver only seems to show one variable as undefined.
Can anyone help as to how to input a fn with 2 variables??
i.e. I inputted:
((t+273)/293)*(760/p)
it accepts t, but ignored p...
thanks
marko
If you want to calculate with units the easiest way is to create a function of a complex variable reduce(x)="real(x(1))+sneg(imag(x(1))*(-1+x(2)*i)+div(imag(x(1)):x(2))+i*mod(imag(x(1))):x((2))"
where sneg(x)="-sign(x-abs(x))"
div(x)="part(x(1)/x(2)))"
mod(x)="fpart(x(1)/x(2))*x(2)"
Note that real and imag are built-in functions.
Watch the brackets!
Usage: take 20 ft. 15in. with 12 in.= 1ft.
reduce (20+15i:12)=21+3i (or 21ft.3in.)
You can also define functions like:
foot(x)=reduce(x(1):12) so
foot(20+15i)=21+3i
or pound(x)=reduce(x(1):16)