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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

I'm having a few problems

BB_14100646
8-Gravel

I'm having a few problems

See attached. I'm using MathCAD 9.0.0.0 and am having a few problems...

  1. Is there a way to put a bar above the variable Yf so it looks like BB_14100646_0-1757510805497.png? I found something online about using the Windows Character  Map and I can copy the bar symbol, but it won't paste in MathCAD.
  2. The last few equations are showing values with a long trail of decimal places following "explicit,ALL." Is there a way to limit it to displaying only 3 or4 decimals? I set it in "Math Formatting > Results > Display Precision," but that seems to have no effect.
  3. Alternatively, is there a way to break long equations to have them continued on the next line? 
  4. The following values are off...
    • T=19.76*10^3 and it should be 19,786 N-m. That's only slightly off.
    • P=1.3*10^6 W and it should be 207,201 N-m/s(W). That's way off.
    • HP=1.744*10^3 and it should be 278 hp. That's way off. Is that all because of a rounding error, Something I did wrong, or is MathCAD misinterpreting one of my variables?

Thanks,

       Brent

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:BB_14100646)

problem 1: already was answered by Stuart

 

problem 2: You cannot format the numeric results of symbolic calculations, but you can limit the precision (in significant digits) symbolic calculations are done by using the modifier float,[nr]. Default is 20.

 

Werner_E_1-1757520925491.png
Unfortunately, 'float' negates the efforts of 'explicit'

Werner_E_2-1757521131635.png

So there is probably no solution to your problem except perhaps the possibility to explicitly round all (intermediate) results with "round".

 

problem 3: Short answer - NO. At least when you have breaking long results of (symbolic) evaluations in mind. Prime only offers options for inserting line breaks at the four basic arithmetic operations when entering terms.

Werner_E_3-1757521394575.png

So all you can do is using narrow margins, smaller font size and maybe paper in landscape mode instead of portrait.

 

problem 4: Already covered by Stuart. The 'unit' "rev" is an angle unit and actually it equals 2 pi. So either you redefine "rev" as being just 1 as suggested by Stuart or you omit the factor 2 pi when calculating P.

Werner_E_5-1757522070795.png

BTW, instead of rev/min you also could use the predefined frequency unit "rpm".

Concerning the  other numeric discrepancies I also guess that they stem from the fact that your source document is using rounded intermediate results. 

 

 

View solution in original post

8 REPLIES 8

Hi, Brent,

 

Problem 1:  You have to construct the overbarred character.  The following is one way to get the desired result.

 

2025 09 10 B.png

 

This process would be considerably simplified if there were a means of converting a string directly into an in-place variable.

 

By curious (or not) serendipity, there was another recent case where such a facility would have been useful.  The OP wanted to automatically create some numbered variables (eg, n0, n1, .. n9) whilst obeying the principle of optimal laziness (ie, not doing manual repetitive work when a computer can do that stuff for you).

 

Stuart

Thank you! overbar and concat worked and I was able to create the charactor. However, for whatever reason, I couldn't get copy and paste to work in MathCAD 9. However, I was able to get it to work in MathCAD 10. It must have been a glitch because I copy and paste all the time in MathCAD. Thank you so much for taking the time to help me!

No worries.   I know it worked a couple of years ago, which I think was Mathcad Prime 9 or perhaps 8.   This article outlines the process and the steps may differ from those I gave. 

 

https://support.alfasoft.com/hc/en-us/articles/360003722078-How-to-add-things-on-top-of-characters-used-as-variable-names-in-Mathcad

 

One thing I found helped was pasting into the Find editbox (ctrl-f), editing the string there, and then pasting into a definition/evaluation operator.

 

Stuart

Hi, Brent ( @BB_14100646 ) ,

 

I'd forgotten that I'd posted about combining characters back in 2020, using Prime Express 6.0.

 

https://community.ptc.com/t5/Mathcad/Unicode-Combining-Characters/m-p/665621#M190147

 

Stuart

Hi Brent,

 

Just had a look at your worksheet,  

 

Problem 4:

 

It's possibly worthwhile checking the multiplications "by hand" in the worksheet, just to show where any rounding differences and assumptions might lie.

 

2025 09 10 C.png

 

Stuart

Werner_E
25-Diamond I
(To:BB_14100646)

problem 1: already was answered by Stuart

 

problem 2: You cannot format the numeric results of symbolic calculations, but you can limit the precision (in significant digits) symbolic calculations are done by using the modifier float,[nr]. Default is 20.

 

Werner_E_1-1757520925491.png
Unfortunately, 'float' negates the efforts of 'explicit'

Werner_E_2-1757521131635.png

So there is probably no solution to your problem except perhaps the possibility to explicitly round all (intermediate) results with "round".

 

problem 3: Short answer - NO. At least when you have breaking long results of (symbolic) evaluations in mind. Prime only offers options for inserting line breaks at the four basic arithmetic operations when entering terms.

Werner_E_3-1757521394575.png

So all you can do is using narrow margins, smaller font size and maybe paper in landscape mode instead of portrait.

 

problem 4: Already covered by Stuart. The 'unit' "rev" is an angle unit and actually it equals 2 pi. So either you redefine "rev" as being just 1 as suggested by Stuart or you omit the factor 2 pi when calculating P.

Werner_E_5-1757522070795.png

BTW, instead of rev/min you also could use the predefined frequency unit "rpm".

Concerning the  other numeric discrepancies I also guess that they stem from the fact that your source document is using rounded intermediate results. 

 

 

That works! Thank you!!!

Werner_E
25-Diamond I
(To:BB_14100646)


@BB_14100646 wrote:

That works! Thank you!!!


Actually what works are Stuarts solutions to your problems 1 & 4.

My contributions to problems 2 & 3 basically just were "No, you can't do that." 😉

Announcements

Top Tags