More units

More units - Messages

#1 Posted: 2/23/2011 7:13:57 PM
scooter

scooter

0 likes in 5 posts.

Group: User

I want to use the complex units for electric power:
S:VA volt-amperes (apparent power)
Q:VAR volt-ampere-reactive (reactive power)
P:W real power (supported yet)
Z: Ohm Impedance
phi= angle of Z and S

S=P+Q·j (using j instead i for imaginary unit to not confues with i for intensity)
S=V·I*
Z=V/I
Z=R+X·j
#2 Posted: 2/23/2011 9:22:24 PM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

Don't know about the electrical units but it is customary for i to refer to the imaginary part of a complex number or sqrt(-1). In my opinion that one should not be changed. Personnally if a variable has the same symbol as a SMath unit I intentionally change the variable name to something else to avoid conflict with internal names. This is even though you can have a variable name with the same name as a unit without conflict. For example SMath will not confuse the variable name ft with the units 'ft (feet).
Ed
#3 Posted: 2/24/2011 3:07:28 PM
scooter

scooter

0 likes in 5 posts.

Group: User

I'm going to try defining the variable j with the value i.
For the rest of units is mor complex
#4 Posted: 2/26/2011 1:30:15 PM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

scooter,

Perhaps some of the units you propose would be good canidates for built-in units, you can create your own units. You can also create a substitue for imaginary i.



As I see it there are three different name formats. One is just the name by itself, the second is preceeded by a single quote and this is supposed to be used for units, the third is subscripted by typing dot. The third convention with out a subscript could be confusing though since you don't see the dot.
Ed
  • New Posts New Posts
  • No New Posts No New Posts