![Lelar Lelar](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 13/09/2021(UTC) Posts: 7 ![Chile Chile](/forum/Content/images/flags/CL.png)
|
I need to pass these codes that are in Mathcad Prime to Smath, does anyone know how I can do it? ![Screenshot_1.png](/forum/resource.ashx?a=42714&b=2) ![Screenshot_2.png](/forum/resource.ashx?a=42715&b=2)
|
|
|
|
![uni uni](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f966.jpg&width=100&height=100) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,495 ![Man Man](/forum/Themes/yafvision/male.gif) ![Russian Federation Russian Federation](/forum/Content/images/flags/RU.png) Was thanked: 1275 time(s) in 746 post(s)
|
There is currently no converter from .mcdx format to .sm. And there is no one to do it, although it is possible. |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Lelar ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) I need to pass these codes that are in Mathcad Prime to Smath, does anyone know how I can do it ? Make your MCDX compact/readable not a scratch sheet. If not too long, make an image, some will inspect.
|
|
|
|
![Lelar Lelar](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 13/09/2021(UTC) Posts: 7 ![Chile Chile](/forum/Content/images/flags/CL.png)
|
Originally Posted by: Jean Giraud ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Originally Posted by: Lelar ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) I need to pass these codes that are in Mathcad Prime to Smath, does anyone know how I can do it ? Make your MCDX compact/readable not a scratch sheet. If not too long, make an image, some will inspect. I don't have the MCDX, I only have the pdf.
|
|
|
|
![uni uni](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f966.jpg&width=100&height=100) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,495 ![Man Man](/forum/Themes/yafvision/male.gif) ![Russian Federation Russian Federation](/forum/Content/images/flags/RU.png) Was thanked: 1275 time(s) in 746 post(s)
|
Originally Posted by: Lelar ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) I don't have the MCDX, I only have the pdf. In this case, only manually. |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
![Lelar Lelar](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 13/09/2021(UTC) Posts: 7 ![Chile Chile](/forum/Content/images/flags/CL.png)
|
Originally Posted by: uni ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Originally Posted by: Lelar ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) I don't have the MCDX, I only have the pdf. In this case, only manually. But the programming is the same in Smath? I mean, for example the FYN or root function still works?
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Not same, but very similar. Regards calculo.sm (23kb) downloaded 13 time(s).![2021-12-20_22-06.png](/forum/resource.ashx?a=42717&b=2)
|
![thanks](/forum/Themes/yafvision/heart_small.png) 2 users thanked overlord for this useful post.
|
on 20/12/2021(UTC), on 21/12/2021(UTC)
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Lelar ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) But the programming is the same in Smath ? I mean, for example the FYN or root function still works ? Smath has many solvers. FYN from implicit roots(,,,).roots will solve on the canvas [MACH number] calculo Direct Code.sm (21kb) downloaded 18 time(s).
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: Jean Giraud ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Smath has many solvers. FYN from implicit roots(,,,).roots will solve on the canvas [MACH number] calculo Direct Code.sm (21kb) downloaded 18 time(s). So you simply reposted my answer?
|
![thanks](/forum/Themes/yafvision/heart_small.png) 1 user thanked overlord for this useful post.
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: overlord ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) So you simply reposted my answer ? Not exactly, not case of transit via local definition. Take care ... Jean. Spline De Boor [Colibri].sm (35kb) downloaded 11 time(s). Bessel J0,Y0.sm (23kb) downloaded 12 time(s).
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Yes, they are same. You just rename y# to y. And deleted line()'s. What a cheap act. Side by side comparison:
|
![thanks](/forum/Themes/yafvision/heart_small.png) 1 user thanked overlord for this useful post.
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: overlord ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Yes, they are same. You just rename y# to y. And deleted line()'s. What a cheap act. # not needed, crowds document Not a case of local definition, crowds/confuses new Smath user As you offered, Smath looks weird. End of it.
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: Jean Giraud ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Not a case of local definition, crowds/confuses new Smath user I have deliberately put to show as it will be calculated. Variable can be named whatever user wants by the way. I am sure Lelar is not confused, as he is a new user. Variable names doesn't crowd/confuse smath users. Your "silent unit" crap confuses new users, crowds topics. Your "non related" replies confuses new users, crowds topics. Your "posting same reply for 4 times" confuses new users, crowds topics. Your "color racket worksheets" confuses new users, crowds topics.
|
![thanks](/forum/Themes/yafvision/heart_small.png) 2 users thanked overlord for this useful post.
|
on 21/12/2021(UTC), on 23/12/2021(UTC)
|
|
![chito chito](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 10/12/2021(UTC) Posts: 6 ![Philippines Philippines](/forum/Content/images/flags/PH.png) Was thanked: 1 time(s) in 1 post(s)
|
Hi,
Maybe off topic between overlord and Jean Giraud's conversation, but what's the difference between a function definition with line() and a definition with line() removed? Will there be a difference on how SMath calculates it?
Cheers.
|
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
In short line | is a descending dependent collection. Welcome to Smath Community ... Jean. chito.sm (52kb) downloaded 12 time(s).
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: chito ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) ...but what's the difference between a function definition with line() and a definition with line() removed? Will there be a difference on how SMath calculates it? There will be a difference, a huge one actually. When a variable is defined before function, and that variable is used inside the function, if line is used, variable redefine shall effect result. if not used, variable redefine won't effect the result of function. Which mostly we don't want not effecting, so using line() is better. ![2021-12-22_22-16.png](/forum/resource.ashx?a=42742&b=2) I mostly define function variables with unique naming. (# after variable for example) So common used variable names won't effect function results. This is my habit and I think it is a useful one. This naming doesn't crowd pages or confuses people. It is minimizing calculation errors caused by author. f(x#;y#):=x#^2+2*y# Best regards Edited by user 22 December 2021 22:20:26(UTC)
| Reason: Not specified
|
![thanks](/forum/Themes/yafvision/heart_small.png) 1 user thanked overlord for this useful post.
|
|
|
![chito chito](/forum/images/noavatar.gif) Rank: Newbie
Groups: Registered
Joined: 10/12/2021(UTC) Posts: 6 ![Philippines Philippines](/forum/Content/images/flags/PH.png) Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Jean Giraud ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) In short line | is a descending dependent collection. Welcome to Smath Community ... Jean. Thank you for the very warm welcome, Jean. Is there a reason why Dy is within in eval()? I tried removing it in the function and the result looks the same. Originally Posted by: overlord ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) if line is used, variable redefine shall effect result. if not used, variable redefine won't effect the result of function. Which mostly we don't want not effecting, so using line() is better.
I think this is a very important point that I need to keep in mind. Using unique names in functions is also a great suggestion. Thank you overlord. Cheers.
|
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: chito ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Thank you for the very warm welcome, Jean. Is there a reason why Dy is within in eval()? I tried removing it in the function and the result looks the same. Two typos in your 'chito' document: Manilla, Kota Kinabalu in Sabah. You are right, no need to Dy:=eval(,) is so fast. eval(,) applies to parse result as a numeric entity. It breaks the chain calculation. Per application experimental. The rule eval(,) is crucifying ... watch the demo attached. from 65 s down to 0.015 s !!! Take care ... Jean Maths eval(,) TEST.sm (20kb) downloaded 7 time(s).
|
|
|
|
![Jean Giraud Jean Giraud](/forum/resource.ashx?url=http%3a%2f%2fen.smath.info%2fforum%2fUploads%2f9678.PNG&width=100&height=100) Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 ![Canada Canada](/forum/Content/images/flags/CA.png) Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Jean Giraud ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) eval(,) applies to parse result as a numeric entity. In simple words, the kernel is a vector of calculated from what to calculate. In this example, the last that will be calculated is eval([R G B]) It gains 1 min [3/4]. Cheers ... Jean. Pattern Etoile Magic [Short].sm (82kb) downloaded 6 time(s).
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 510 time(s) in 340 post(s)
|
Originally Posted by: chito ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) Is there a reason why Dy is within in eval()? eval() makes computations faster most of time. Very minor times, may have no effect or slows the calculation. It would be wise to choose where and when to use it. ![2021-12-23_17-53.png](/forum/resource.ashx?a=42748&b=2) Originally Posted by: chito ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) I think this is a very important point that I need to keep in mind. Using unique names in functions is also a great suggestion. Thank you overlord. Well thank you, glad if I could help. There are some other tricks to remember as well. Here is list of which come to my mind at this instant; - symbolic/numeric optimization
most errors can be parsed with selecting the right one
- Δ temperatures (Δ°C, Δ°F, Δ°Re)
- not using units for some solvers {solve(), roots()}
or using multiplications at right place to trick solver as value is unitless
- using maple() or maxima() for most symbolic results (better support)
- smath vectors/matrices starts with 1, mathcad starts with 0
some new users troubles with converting mathcad functions to smath
- recursive functions shall give an error after 50 steps
better not to use it, try to wrtie algorithms conventional way
- eval() for faster calculations
- line() for functions (not needed always)
- to be careful for variable names
- choosing right plot for the right job
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.