Skip to main content
18-Opal
December 30, 2021
Solved

UNITS NOT COMPATIBLE WHILE GRAPHING

  • December 30, 2021
  • 2 replies
  • 1752 views

HI

CSV DATA FILE and MATHCAD PRIME ATTACHED - ERROR ON PAGE 6. I need to put km "somewhere". Plotting skills limited!.

 

Thanks for the help.

ppal_0-1640892470943.png

 

Best answer by StuartBruff

@ppal_255687 wrote:

HI

CSV DATA FILE and MATHCAD PRIME ATTACHED - ERROR ON PAGE 6. I need to put km "somewhere". Plotting skills limited!.

 

Thanks for the help.

ppal_0-1640892470943.png

 


 

dnorm doesn't like units (as Luc also surmised ... I hadn't seen Luc's message before starting to reply) and neither do the limit markers in the plot (?? ... seems odd).

 

I defined a function numeric to get rid of the units, leaving the numeric value in Mathcad's base units.  I also defined a version of dnorm (with label Variable) that removes units (the built-in one is still available if you use the Function label).   Use numeric in the limit markers as well.

 

2021 12 30 d.png

 

Mathcad Prime 7 worksheet attached.

 

Stuart

2 replies

23-Emerald IV
December 30, 2021

Prime sure doesn't like the start and end labels of your x-axis (mu-3*sigma  and mu+3*sigma), because they contain units.

Then I wonder if dnorm() allows its parameter values to have units. Can't check because dnorm() is a Premium function, so not supported in Prime Express.

You wonder where to put the km  ? Maybe you should divide mu and sigma by it.

Experiment and find out.

 

Success!
Luc

23-Emerald V
December 30, 2021

@ppal_255687 wrote:

HI

CSV DATA FILE and MATHCAD PRIME ATTACHED - ERROR ON PAGE 6. I need to put km "somewhere". Plotting skills limited!.

 

Thanks for the help.

ppal_0-1640892470943.png

 


 

dnorm doesn't like units (as Luc also surmised ... I hadn't seen Luc's message before starting to reply) and neither do the limit markers in the plot (?? ... seems odd).

 

I defined a function numeric to get rid of the units, leaving the numeric value in Mathcad's base units.  I also defined a version of dnorm (with label Variable) that removes units (the built-in one is still available if you use the Function label).   Use numeric in the limit markers as well.

 

2021 12 30 d.png

 

Mathcad Prime 7 worksheet attached.

 

Stuart