Problem with simple 2D plot

Problem with simple 2D plot - Сообщения

#1 Опубликовано: 19.07.2021 12:41:14
trawqa18

trawqa18

0 сообщений из 6 понравились пользователям.

Группа: 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 Опубликовано: 19.07.2021 13:46:10
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 25 раз(а).

2021-07-20_01-48.png
#3 Опубликовано: 19.07.2021 14:32:10
trawqa18

trawqa18

0 сообщений из 6 понравились пользователям.

Группа: User

Thanks MAN! Now I have starting point


How you define Mg? This arrow came from?
3.PNG
#4 Опубликовано: 19.07.2021 15:21:33
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 Опубликовано: 20.07.2021 08:22:45
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: 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 КиБ) скачан 35 раз(а).

Regards.
#6 Опубликовано: 20.07.2021 11:21:04
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

mg(x) More for Convenience.sm (17 КиБ) скачан 38 раз(а).
#7 Опубликовано: 27.07.2021 13:12:17
trawqa18

trawqa18

0 сообщений из 6 понравились пользователям.

Группа: 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 КиБ) скачан 34 раз(а).
#8 Опубликовано: 27.07.2021 14:16:12
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 27.07.2021 14:28:49
trawqa18

trawqa18

0 сообщений из 6 понравились пользователям.

Группа: 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 Опубликовано: 27.07.2021 14:50:21
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 27.07.2021 15:25:18
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 27.07.2021 15:30:42
trawqa18

trawqa18

0 сообщений из 6 понравились пользователям.

Группа: User

Davide, that is what I'm talking about. Thanks man!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений