Problem with simple 2D plot

Problem with simple 2D plot - 消息

#1 已发布: 2021/7/19 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 已发布: 2021/7/19 13:46:10
overlord

overlord

600个赞,共1,381个帖子。

组: 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)已下载 1218 次。

2021-07-20_01-48.png
#3 已发布: 2021/7/19 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 已发布: 2021/7/19 15:21:33
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2021/7/20 08:22:45
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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)已下载 1218 次。

Regards.
#6 已发布: 2021/7/20 11:21:04
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

mg(x) More for Convenience.sm (17.33 KiB)已下载 1206 次。
#7 已发布: 2021/7/27 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.06 KiB)已下载 783 次。
#8 已发布: 2021/7/27 14:16:12
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/7/27 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 已发布: 2021/7/27 14:50:21
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/7/27 15:25:18
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/7/27 15:30:42
trawqa18

trawqa18

0个赞,共6个帖子。

组: User

Davide, that is what I'm talking about. Thanks man!
  • 有新帖
  • 无新帖