cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Translate the entire conversation x

user defined units

ptc-1385443
3-Newcomer

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

Thanks, Stuart, that worked.

Sent from my iphone


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 

Announcements


Top Tags