Post Reply 
units of variables?
02-27-2018, 05:44 PM (This post was last modified: 02-27-2018 05:46 PM by DrD.)
Post: #4
RE: units of variables?
(02-27-2018 11:58 AM)sinan oz Wrote:  I could had chance to put units on variables in my HP 50G , but couldn't do it at my hp prime yet and could find any document how to do... .
What I want to do: I am making my own application. Example on a simple equation P= F/A
F variable must be kg and A variable must be cm2 and the result P will be bar or kg/cm2
thanks in advance...

Just multiply values by 1_unit:

(For example):
Code:

f:=5; a:=1;
f:=f*1_kg;  a:=a*1_cm^2;
p:=f/a;

p = 5_(kg/cm^2) {Don't use reserved variables!}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
units of variables? - sinan oz - 02-27-2018, 11:58 AM
RE: units of variables? - Nigel (UK) - 02-27-2018, 04:39 PM
RE: units of variables? - Carsen - 02-27-2018, 05:35 PM
RE: units of variables? - DrD - 02-27-2018 05:44 PM
RE: units of variables? - sinan oz - 03-01-2018, 02:19 PM
RE: units of variables? - Tim Wessman - 03-01-2018, 07:34 PM
RE: units of variables? - grsbanks - 03-02-2018, 10:34 AM
RE: units of variables? - Tim Wessman - 03-02-2018, 04:51 PM
RE: units of variables? - ndzied1 - 03-03-2018, 01:36 AM
RE: units of variables? - math7 - 03-03-2018, 03:07 AM
RE: units of variables? - sinan oz - 03-03-2018, 09:29 AM
RE: units of variables? - Tonig00 - 03-03-2018, 09:36 AM
RE: units of variables? - salvomic - 03-03-2018, 09:43 AM



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