Graphing Problem

Graphing Problem - Can't graph piece wise function -SOLVED - 消息

#1 已发布: 2017/10/3 23:38:03
dlyon

dlyon

0个赞,共5个帖子。

组: User

I've tried many ways from examples I have found on the internet, but I just can't get the graph to plot. What am I doing wrong?

Any help would be greatly appreciated.

Graph.png

[b]Foot note:
The problems are solved. The main problem was units; units must be correct through out. When using constants be sure the value also has units attached (1.5 m, not 1.5, for example). The second was that for the extended graph plugin there seems to be a limit on the levels of conditional functions you can call. I ended writing the function as a one line which worked:

引用

m(x)={((x≥0m)&(x

#2 已发布: 2017/10/4 06:08:56
csb531

csb531

0个赞,共24个帖子。

组: User

Hello Dave,

maybe a simple scaling problem? Your results are of magnitude 8 N, your plot is in [kN].
Try scaling the plot area with [Ctrl]+scroll wheel or [Shift]+ scroll wheel.
Hope this helps...

Regards, csb.
#3 已发布: 2017/10/4 07:51:33
Jean Giraud

Jean Giraud

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

组: User

Wrote

I just can't get the graph to plot



Dave, please attach the work sheet.
#4 已发布: 2017/10/4 11:19:15
dlyon

dlyon

0个赞,共5个帖子。

组: User

Here Jean, thanks for looking

DaveMAST.sm (1.43 MiB)已下载 1314 次。
#5 已发布: 2017/10/4 12:07:09
Davide Carpi

Davide Carpi

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

组: Moderator

Input units are needed... in the standard 2D plot, just use p(x*'m) / V(x*'m)

2017-10-04 17_03_13-SMath Studio - [MAST.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 已发布: 2017/10/4 12:18:53
Jean Giraud

Jean Giraud

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

组: User

1. The X_Y plot does not take conditional
2. Quick plot does not take units [there is way to trick]
3. units removed from the two conditional ... plots !!!

Cheers... Jean

MAST.sm (1.43 MiB)已下载 1306 次。
#7 已发布: 2017/10/4 13:31:53
dlyon

dlyon

0个赞,共5个帖子。

组: User

Yahoo! Thanks Jean! I understand the problem!

Dave
  • 有新帖
  • 无新帖