Skip to main content
4-Participant
Solved

user defined units

Hello, I defined an electron volt in terms of Joules, and tried to convert Joules to electron volts in prime 11, and got an error saying electron volt was undefined.   What am I doing wrong?

 

ptc1385443_0-1755976104106.png

I get the same error when I replace the J with the eV in the 2nd to last expression.  This worked in MathCAD 15.

ptc1385443_1-1755976282777.png

 

Thanks for the help, Paul

23-Emerald V

When you define eV you need to set the Math Label to 'Unit', not use the default 'Variable'.

 

2025 08 23 F.png

 

The Math Label can be found in the middle of the Math Ribbon.

 

Stuart

3 replies

23-Emerald V

When you define eV you need to set the Math Label to 'Unit', not use the default 'Variable'.

 

2025 08 23 F.png

 

The Math Label can be found in the middle of the Math Ribbon.

 

Stuart

Translate
4-Participant
Thanks, Stuart, that worked.

Sent from my iphone


Translate
23-Emerald V

No worries.  

 

I'm not sure whether eV (or other user-defined unit) should be auto-converted to Unit at its first use in the unit placeholder or not.

 

Stuart 

Translate