Skip to main content
4-Participant
August 23, 2025
Solved

user defined units

  • August 23, 2025
  • 1 reply
  • 537 views

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

Best answer by StuartBruff

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

1 reply

23-Emerald V
August 23, 2025

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

4-Participant
August 23, 2025
Thanks, Stuart, that worked.

Sent from my iphone


23-Emerald V
August 24, 2025

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