2D Plots

2D Plots - What am I missing? - Сообщения

#1 Опубликовано: 25.10.2021 13:34:04
Lloyd Snell

Lloyd Snell

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

Группа: User

Trying to plot a variety of functions and nothing shows up in the plots.
I have 23 yrs of MathCad experience, but cannot figure out what Smath is looking for to plot three very simple function (See attached file).
Additionally, I am not sure why an equation needs vectorized to output the answers in the normal distribution equation.

Equation 1 - Normal distribution does not solve as a function until it is vectorized. Why?
Equation 2 - f(x):x^3+2*x*sin(0.25) solves without vectorization but will not plot. Why?
Equation 3 - f(x):vectorize(1/{σ*sqrt(2*π)}*e^{-1/2*({x-μ}/σ)^2}) solves with vectorization but does not plot (2D or X-Y plot method). Why?


Smath - 2D Plots.sm (15 КиБ) скачан 39 раз(а).
#2 Опубликовано: 25.10.2021 13:54:36
Lloyd Snell

Lloyd Snell

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

Группа: User

Equation 2 also needs vectorized to get the correct results.
You don't have to do this in MathCad, why here?
#3 Опубликовано: 25.10.2021 14:35:07
sergio

sergio

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

Группа: User

You have defined a vector of values ​​for x. If you use the X-YPLOT plugin you need to change the variable. If instead you use SM native 2D graph then it already works as you expect
Solver_ZlzWlOSv41.png
sergio
#4 Опубликовано: 25.10.2021 14:42:14
Lloyd Snell

Lloyd Snell

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

Группа: User

First Solution Found
This allowed me to plot Normal Distribution Function.
augment(x,f(x))
#5 Опубликовано: 25.10.2021 15:13:13
Lloyd Snell

Lloyd Snell

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

Группа: User

Solved for now. On with the learning experience.
Thanks....
#6 Опубликовано: 25.10.2021 15:13:44
Renzo Choque

Renzo Choque

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

Группа: User

Hi, if you need a quick plot I recommend you use 2D standard plot you can plot functions f(x) directly , if you need a more configurable plot use XY plot but you need to put your data in a special format. Файл не найден.Файл не найден.
#7 Опубликовано: 25.10.2021 15:29:09
overlord

overlord

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

Группа: Moderator

You don't need to use range() and augment() if you want to plot sections.
You can limit it with if-else() or cases().

Regards

plot.png
#8 Опубликовано: 25.10.2021 15:43:24
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Trying to plot a variety of functions and nothing shows up in the plots.
I have 23 yrs of MathCad experience, but cannot figure out what Smath is looking for to plot three very simple function (See attached file).
Additionally, I am not sure why an equation needs vectorized to output the answers in the normal distribution equation.


1. Show the two other ones on same document for doctoring.
2. Your sigma makes no sense !
3. BTW, in Samples you should find my Stat Treasury [10 WS]
Hard to find such immense Compendium.
4. If you can't download, please let me know
Welcome ... Jean.

Smath - 2D Plots.sm (17 КиБ) скачан 35 раз(а).
#9 Опубликовано: 25.10.2021 15:50:14
Jean Giraud

Jean Giraud

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

Группа: User

... besides the pure statistical application,
you can use to fit data sets [Fréchet US Rainfall ...]
#10 Опубликовано: 25.10.2021 15:52:41
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

... besides the pure statistical application,
you can use to fit data sets [Fréchet US Rainfall ...]


There is about 24 built-in PDF in Smath ... f(x) menu
as well as CDF, ICDF
#11 Опубликовано: 26.10.2021 07:05:13
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Equation 1 - Normal distribution does not solve as a function until it is vectorized. Why?


1. Discretize the range you want and plot ... No vectorize.
2. Plot scalar directly.

Normal.PNG
#12 Опубликовано: 26.10.2021 07:29:00
Jean Giraud

Jean Giraud

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

Группа: User

Paecific.sm (9 КиБ) скачан 23 раз(а).
#13 Опубликовано: 26.10.2021 08:20:56
Jean Giraud

Jean Giraud

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

Группа: User

... in most applications inc(Low,High,step,f(#)) is preferred

Paecific.sm (14 КиБ) скачан 29 раз(а).
#14 Опубликовано: 26.10.2021 09:50:27
Jean Giraud

Jean Giraud

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

Группа: User

Scalar plots have limited use, mostly confirm the project.
Discrete plot can be used for subsequent application/export.
1. Collapsed the algo at top utilities.
2. Use it infinitely in-situ use [range each f(x) at will].

AlgoStyle.PNG
#15 Опубликовано: 26.10.2021 11:29:10
overlord

overlord

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

Группа: Moderator

Try this file.

Regards

Smath - 2D Plots_r1.sm (17 КиБ) скачан 43 раз(а).

Файл не найден.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений