Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Can anyone tell me the correct syntax for using trigonometric functions? When I try it, I get an error result that says "missing term or expression". All help appreciated
I have tried, everything you enumerated and as you mentioned passed getting started they become a waste of time. I even bought a book that's great if I wanted to do high school calculous but nothing that helps me do what I want to do. I will try to find the old user handbook.
So, for this same calculation, is there any way to get a clean answer as a function of t with the required format: (95*e^-t/0.005)?
I get the format, but with units in it, and wrong numbers,
How can I type solve,t,simplify together, as you did in your sample worksheet?
In the main calculation, I disabled the region where you said I redefined sin alpha
, so the final calculation becomes correct, but if I type a= I dont get 49.98 degree. What am I missing?
In your symbolic evaluations you still have the degree symbol at the wrong position.
Furthermore the symbolic engine does not know anything about units. Its simply 'translates' the degree symbol ° to the unknow variable "deg".
Concerning a function depending on t you should have a second look at Stuarts answer.
He showed exactly that
Here with the resistance value 0,08.. ohm, which you had in your first sheet, and not with 0,8... ohm which you used later.
In your second sheet (the one which needs heavy cleaning) you defined a function e()
Like earlier with "sin" Prime assumes that you mean this function when you later use "e" and you would have to tell it by relabelling that you mean the built-in constant. Its more convenient not to use that function name.
You still have the degree symbol at the wrong position and you were missing the unit seconds on the o.oo5
Thank you very much, this was clear.
@Werner_E wrote:Mathcad sure had the potential but Prime isn't that big of a player in the field of math programs.
I am wondering me too at this thing, but have not seen so far any pertinent answer from PTC regarding these questions:
1. Why does the PTC company no longer want Mathcad Prime to be a top player in the filed of math programs?
2. Why on PTC's main website Mathcad is not even listed as a main product?
Maybe this marketing guy @DJNewman or others like @Jaime_Lee , @vnamboodheri , @Catalina , @AndrewK , @achirila , @anursingh , @Simona can take these 2 questions and present to PTC management team and could come to us, here, then with a pertinent answer.
I am interested too to know in which direction PTC decided to go with this Mathcad Prime. Its better that PTC to let users/customers to know to not go in the same direction where PTC wants to go with Mathcad Prime, as its not good for anyone to waste his precious time and nerves.
@Cornel wrote:
@Werner_E wrote:Mathcad sure had the potential but Prime isn't that big of a player in the field of math programs.
I am wondering me too at this thing, but have not seen so far any pertinent answer from PTC regarding these questions:
1. Why does the PTC company no longer want Mathcad Prime to be a top player in the filed of math programs?
2. Why on PTC's main website Mathcad is not even listed as a main product?
Maybe this marketing guy @DJNewman or others like @Jaime_Lee , @vnamboodheri , @Catalina , @AndrewK , @achirila , @anursingh , @Simona can take these 2 questions and present to PTC management team and could come to us, here, then with a pertinent answer.
I am interested too to know in which direction PTC decided to go with this Mathcad Prime. Its better that PTC to let users/customers to know to not go in the same direction where PTC wants to go with Mathcad Prime, as its not good for anyone to waste his precious time and nerves.
You raise good points. Ones which have been asked since Prime first appeared on the scene as the "new" Mathcad (Mathcad was created by Mathsoft back in the 1980s). See, for example, https://community.ptc.com/t5/Mathcad/Who-is-the-target-user/m-p/85294/highlight/true#M33635
Mathsoft developed Mathcad until about Mathcad 13 or 14, can't remember which, at which point PTC took over the application.
It appears as if PTC intended Mathcad to effectively be subsumed into its Creo design tool as much of the redevelopment was geared towards this end. It further appears that PTC see Mathcad as documentation support tool, hence the rather page-oriented structure of features such as Draft mode, Solve Blocks, and Tables.
What was lost was Mathsoft's original view of Mathcad as a smart whiteboard with everything returning a value. A Text Block in Mathcad Prime stretches right across screen in Draft Mode, whereas in Original Mathcad it only stretched across a single page. Furthermore, in line with the whiteboard concept, you could print out Draft are pages, which you can't do in Prime. Advanced Controls could be used on the right hand side of a function definition. User generated or modified images could be actively linked to a control that plotted them and reflected any changes made to the images in or external to the worksheet.
Pay note to my complaint in the referenced thread that useful (actual or potential) functionality was taken away because it confused some people, not how useful it was to others. My particular bugbears are broken & limited recursion and removed partial application. As many have found out over the years, range variables are often sources of confusion to new and inexperienced users, yet they're still here and people overcome their problems by being educated about the differences and through gaining experience in their uses.
I don't get the impression, despite the plethora of useful functions, that PTC see people outside of the Mechanical/Structural Engineering world as being part of their target audience. There is still a lot of missing functionality and way of looking at things that (IMO) that would appeal to a development engineer in different branches (eg, image processing or algorithm development) or different disciplines (such as physics, chemistry, mathematics).
When I was an aerospace systems engineer, I viewed Mathcad as a systems development tool that could be used to take some functionality from initial, rough concept through each of the design lifecycle stages. I used it develop algorithms for such things as submarine 6-degree-of-freedom model, producing concept scratchpads, requirements documents, verification data for algorithm implementation testing (eg, in Matlab or C++), and implementation test result checking, These documents went from relatively informal to final company-standard release documentation (this latter aspect is one in which I had a lot of Mathcad feature suggestions, eg automatic paragraph/figure numbering, and enhanced string results). Prime is a less useful tool in those respects.
Mathcad Prime has made significant improvement over the years, but that improvement has been slow and there's still a long way to go to extend its capabilities.
Provided, of course, that such improvement and extension meets the needs of PTC's actual target audience and not those of us who want a more powerful and general purpose mathematical application.
Stuart
@Werner_E wrote:
The degree symbol ... Not sure how you created it. Depending on the language your keyboard is for you may have the degree symbol directly available. Otherwise you can also simply type "deg" (without the quotes) as the 'unit'.
I used the degree symbol from the Angle section of the Units dropdown in the Math tab on the ribbon.
Stuart
@StuartBruff wrote:
@Werner_E wrote:
The degree symbol ... Not sure how you created it. Depending on the language your keyboard is for you may have the degree symbol directly available. Otherwise you can also simply type "deg" (without the quotes) as the 'unit'.
I used the degree symbol from the Angle section of the Units dropdown in the Math tab on the ribbon.
Stuart
Guess that's the 'legal' but also uncomfortable way.
I am privileged as on my German keyboard the degree symbols has its own key (left to the "1").
Unfortunately, unlike in real Mathcad, Prime does not allow it to be used in the unit placeholder of a displayed result.
We could also use ALT-248, but this also would not be accepted in the unit placeholder.
Actually I don't know how to get this degree symbol in the unit placeholder using the keyboard (apart from ALT-M U and then three times arrow down).
alt 0176 °
I just do alt0176, its easier for me than to take off from keyboard and use the mouse.
ALT-0176 seems to be the same as ALT-248.
Both don't work in the unit placeholder
Only the degree from the unit menu does the job
This was implemented more user friendly in real Mathcad.
In Prime I often use ° when defining variables (because its easy with my keyboard, looks the way i want it and I am used to it) but I use "deg" when I display results (because the degree symbol here is to cumbersome). This unfortunately makes for quite inconsistent documents which I often can stand and it ends me re-editing the sheet 😞
You can also insert the degree symbol from Character Map - copy & paste.
I tried the (UK) Onscreen Keyboard (OSK) on my W11 Dell laptop, but Alt-0176 didn't do anything with the numeric keyboard enabled, and Fn-0176 entered the divide operator as soon as I pressed Fn-0. OTOH, there were some strange interactions between the OSK and physical keyboard, so that may have played a part.
The degree symbol position in the unit placeholder doesn't look right - too much space.
From the SI Brochure, 9th Edition:
5.4.3 Formatting the value of a quantity
The numerical value always precedes the unit and a space is always used to separate the unit from the number. Thus the value of the quantity is the product of the number and the unit. The space between the number and the unit is regarded as a multiplication sign (just as a space between units implies multiplication). The only exceptions to this rule are for the unit symbols for degree, minute and second for plane angle, °, ′ and ″, respectively, for which no space is left between the numerical value and the unit symbol.
Stuart
This is not the only case for which Prime would not conform to ISO-80000-1.
Copying from the character table worked for me, but ALT-0176 from the numeric keypad did not (it inserted the ° symbol but at the same time a placeholder for the numeric value appeared, throwing the error. I could place a "1" there, but thats sure not an acceptable solution 😉
I wonder why copy and paste works OK but typing triggers an automatic input procedure.
When I re-edit worksheets to change "deg" to "°" I usually use the unit menu once and the do the rest with copy & paste. Nonetheless annoying work.
Yes, that is very annoying. Do you have Mac or Pc?
But this is still more annoying, no matter where I put the degree symbol, the calculation doesn't come out right. I can't even get one wrong answer, There has to many. But If I delete the degree symbol, then the answer is correct.
Not sure what you mean.
arccos, which is named acos in Mathcad, is a function with a unitless value (usually in the range from -1 to 1) as its argument and the RESULT of this function is an angle.
So of course its wrong to place the degree symbol after the function argument as you did in your first and third expression.
The second and fourth calculations wrong, too.
acos return an angle. If you add "deg" or "°" you multiply this angle by pi/180 and of course this leads to a wrong result.
You use "deg" only when you DEFINE or PROVIDE an angle in degree or when you DISPLAY and angle and want to see it in degree.
BTW, if there still is something unclear, I guess its time that you open an own thread for it.
I should've' caught that, usually for power factor I calculate the angle fist, apologies, Thanks,
Thank you Stuart for this clear example. Is there no way to set this up without having to take Transpose? Thank you.
@cadtelsim wrote:
Thank you Stuart for this clear example. Is there no way to set this up without having to take Transpose? Thank you.
No problem,
The data is in standard Mathcad column-vector format, so it's already set up correctly.
I prefer transposing vectors when displaying their contents. That way, they take up less vertical worksheet real estate, and the worksheets are generally more compact without losing clarity. IMO, tall vertical vector displays with lots of unused worksheet space make a worksheet harder to read. Plus, it just plain irritates me. 😀
Stuart
Makes sense. Thank you.
You're welcome.