Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline GTR007  
#1 Posted : 19 July 2021 18:41:14(UTC)
GTR007

Rank: Newbie

Groups: Registered
Joined: 19/07/2021(UTC)
Posts: 6
Poland
Location: --

Hi everyone. In work I used MathCad, but when I heared about Smath Studio - I wanna try it at home. But..... I have problem. I want to rewrite one calculation sheet from MathCad to Smath.

Here is fragment from MathCad: 1.PNG


I try to rewrite the same calculation to Smath but I can't correctly generate plot: 2.PNG

What I do wrong? I can't find error. BTW: I can't apply "x" range like I made it in MathCad.Can someone help me? Maybe make simple working file with solution on my problem? I already don't have any idea... I try for few days after works.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 19 July 2021 19:46:10(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: GTR007 Go to Quoted Post
What I do wrong? I can't find error. BTW: I can't apply "x" range like I made it in MathCad.Can someone help me? Maybe make simple working file with solution on my problem? I already don't have any idea... I try for few days after works.

Here is your worksheet.
Smath don't have mathcad x define while plotting.
We generally augment x with results.
While unit version shall plot too, better to make eliminating a habbit.
PS: updated post with cases(), a simpler and easier if() replacement.

Regards

mg(x).sm (16kb) downloaded 11 time(s).

2021-07-20_01-48.png

Edited by user 20 July 2021 01:49:18(UTC)  | Reason: Not specified

Offline GTR007  
#3 Posted : 19 July 2021 20:32:10(UTC)
GTR007

Rank: Newbie

Groups: Registered
Joined: 19/07/2021(UTC)
Posts: 6
Poland
Location: --

Thanks MAN! Now I have starting point Good


How you define Mg? This arrow came from?
3.PNG

Edited by user 19 July 2021 20:53:53(UTC)  | Reason: Not specified

Offline overlord  
#4 Posted : 19 July 2021 21:21:33(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: GTR007 Go to Quoted Post
Thanks MAN! Now I have starting point Good


How you define Mg? This arrow came from?

That is vectorize() function.
You can either type it as a function or select from toolbar.

Regards
Offline oscampo  
#5 Posted : 20 July 2021 14:22:45(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: GTR007 Go to Quoted Post
Hi everyone. In work I used MathCad, but when I heared about Smath Studio - I wanna try it at home. But..... I have problem. I want to rewrite one calculation sheet from MathCad to Smath.
...


Hi!
Here is a little different way to express your model and find your answer, maybe it could be interesting:


BySingularityFunctions.png



You can download the Smath file here: BySingularityFunctions.sm (26kb) downloaded 15 time(s).

Regards.
Offline Jean Giraud  
#6 Posted : 20 July 2021 17:21:04(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
mg(x) More for Convenience.sm (18kb) downloaded 22 time(s).
Offline GTR007  
#7 Posted : 27 July 2021 19:12:17(UTC)
GTR007

Rank: Newbie

Groups: Registered
Joined: 19/07/2021(UTC)
Posts: 6
Poland
Location: --

I try to make Mg(x) fragment on my own... How you done this? 222222.PNG

I wanna to have mm on plot "x". How can I change that?


I'm trying to make this file in Smath ( Yi n'Yama n'syuc - Rolka jezdna.pdf (212kb) downloaded 11 time(s).

Edited by user 27 July 2021 19:29:29(UTC)  | Reason: Not specified

Offline Jean Giraud  
#8 Posted : 27 July 2021 20:16:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: GTR007 Go to Quoted Post
I try to make Mg(x) fragment on my own... How you done this?

Fragment as suggested 3 different ways.
No system will respond to invented code.

Offline GTR007  
#9 Posted : 27 July 2021 20:28:49(UTC)
GTR007

Rank: Newbie

Groups: Registered
Joined: 19/07/2021(UTC)
Posts: 6
Poland
Location: --

I'm try to understeund how somebody write it... I can't reproduce that record.

I mean, I don't know in what order I must click specific function to get this "function"
Offline Davide Carpi  
#10 Posted : 27 July 2021 20:50:21(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
The symbolic stuff is, from outer to inner:
line(
vectorize(
cases(

cases is from "custom functions" plugin, therefore to have it in your functions you have to install the extension first.

line and vectorize are available also in the toolboxes on RHS of the worksheet area.

About unit scaling, divide by 'mm instead of 'm (a mm is 1/1000 m, so the output will be magnified by a 10E3 factor)
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#11 Posted : 27 July 2021 21:25:18(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: GTR007 Go to Quoted Post
I'm try to understand how somebody write it... I can't reproduce that record.
I mean, I don't know in what order I must click specific function to get this "function"

Here is the 4th code ... set 'n' as you wish to fragment.

Fragment.PNG
Offline GTR007  
#12 Posted : 27 July 2021 21:30:42(UTC)
GTR007

Rank: Newbie

Groups: Registered
Joined: 19/07/2021(UTC)
Posts: 6
Poland
Location: --

Davide, that is what I'm talking about. Thanks man!
Users browsing this topic
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.