Skip to main content
4-Participant
Aug 23, 2025 7:12 PM UTC
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
Aug 23, 2025 8:48 PM UTC

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
Aug 23, 2025 8:48 PM UTC

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
Aug 23, 2025 9:31 PM UTC
Thanks, Stuart, that worked.

Sent from my iphone


Translate
23-Emerald V
Aug 24, 2025 12:27 AM UTC

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