Problem with simple 2D plot

Problem with simple 2D plot - Poruke

#1 Objavljeno: 19. 7. 2021. 12:41:14
trawqa18

trawqa18

0 svidjanja u 6 postova.

Grupa: User

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.
#2 Objavljeno: 19. 7. 2021. 13:46:10
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

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 (15,57 KiB) preuzeto 1236 put(ova).

2021-07-20_01-48.png
#3 Objavljeno: 19. 7. 2021. 14:32:10
trawqa18

trawqa18

0 svidjanja u 6 postova.

Grupa: User

Thanks MAN! Now I have starting point


How you define Mg? This arrow came from?
3.PNG
#4 Objavljeno: 19. 7. 2021. 15:21:33
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Thanks MAN! Now I have starting point


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
#5 Objavljeno: 20. 7. 2021. 08:22:45
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

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 (25,07 KiB) preuzeto 1249 put(ova).

Regards.
#6 Objavljeno: 20. 7. 2021. 11:21:04
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

mg(x) More for Convenience.sm (17,33 KiB) preuzeto 1241 put(ova).
#7 Objavljeno: 27. 7. 2021. 13:12:17
trawqa18

trawqa18

0 svidjanja u 6 postova.

Grupa: User

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 (211,06 KiB) preuzeto 796 put(ova).
#8 Objavljeno: 27. 7. 2021. 14:16:12
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

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.

#9 Objavljeno: 27. 7. 2021. 14:28:49
trawqa18

trawqa18

0 svidjanja u 6 postova.

Grupa: User

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"
#10 Objavljeno: 27. 7. 2021. 14:50:21
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#11 Objavljeno: 27. 7. 2021. 15:25:18
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

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
#12 Objavljeno: 27. 7. 2021. 15:30:42
trawqa18

trawqa18

0 svidjanja u 6 postova.

Grupa: User

Davide, that is what I'm talking about. Thanks man!
  • Novi postovi
  • Nema novih postova