Problem with simple 2D plot

Problem with simple 2D plot - Mensajes

#1 Publicado: 19/7/2021 12:41:14
trawqa18

trawqa18

0 me gusta en 6 mensajes.

Grupo: 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 Publicado: 19/7/2021 13:46:10
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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) descargado 1207 vez(es).

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

trawqa18

0 me gusta en 6 mensajes.

Grupo: User

Thanks MAN! Now I have starting point


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

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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 Publicado: 20/7/2021 8:22:45
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: 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) descargado 1204 vez(es).

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

mg(x) More for Convenience.sm (17,33 KiB) descargado 1197 vez(es).
#7 Publicado: 27/7/2021 13:12:17
trawqa18

trawqa18

0 me gusta en 6 mensajes.

Grupo: 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) descargado 774 vez(es).
#8 Publicado: 27/7/2021 14:16:12
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 27/7/2021 14:28:49
trawqa18

trawqa18

0 me gusta en 6 mensajes.

Grupo: 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 Publicado: 27/7/2021 14:50:21
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 27/7/2021 15:25:18
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 27/7/2021 15:30:42
trawqa18

trawqa18

0 me gusta en 6 mensajes.

Grupo: User

Davide, that is what I'm talking about. Thanks man!
  • Nuevos mensajes
  • Sin mensajes nuevos