Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline JoeF  
#1 Posted : 02 April 2017 05:45:15(UTC)
JoeF


Rank: Member

Groups: Registered
Joined: 27/02/2017(UTC)
Posts: 14
United States

Page3.png

I am not sure why SMath does not like insert - plot - 2D for f(u)

Thanks
Joe

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 02 April 2017 09:51:35(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Joe,

That is because you have to put "x" as a formal argument in the insert 2D plot (it is always "x" to f(x)). For insert 2D plot it does not matter if "x" is previously defined or not. XY plot works differently. It needs an undefined argument (f(x) and f(u) are the same as long as both "x" and "u" are undefined).

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#3 Posted : 02 April 2017 14:32:18(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: JoeF Go to Quoted Post
I am not sure why SMath does not like insert - plot - 2D for f(u)


For the "QuickPlot" the plotting canvas argument is 'x' only 'x'.
You will have lot of pleasure plotting stuff in Smath.

Jean

Forum Plot Fun.sm (7kb) downloaded 24 time(s).
Offline JoeF  
#4 Posted : 02 April 2017 19:32:37(UTC)
JoeF


Rank: Member

Groups: Registered
Joined: 27/02/2017(UTC)
Posts: 14
United States

Radovan / Jean:
I understand now.

Another question - I am reading through all the handbooks and as I read I keep adding the examples into a SMath page so as a result I will define and redefine variables ('x'Wink and functions ( f(x) ) many times as I work through the example problems. I have run into a issue where it appears SMath gets confused if I redefine 'x' or f(x) too many times. I get error messages but if I copy and paste the particular section onto a new page by itself everything works. Again is there something I am doing wrong?
Thanks
Joe SMath Solving Equations.sm (227kb) downloaded 17 time(s).

Edited by user 02 April 2017 19:44:57(UTC)  | Reason: Added file

Offline omorr  
#5 Posted : 02 April 2017 20:39:54(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Joe,

In your example roots(f(x),x)= will not work because you have x defined previously. Function roots() needs undefined variables. There is no consensus here about undefined variables in the cases similar like this one. You might use some variables that have low chances to be defined in your worksheet (something like roots(f(#x),#x)= or roots(f(_x),_x)= etc.)

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#6 Posted : 03 April 2017 04:05:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: JoeF Go to Quoted Post
Another question


Several answers:

1. some notes [red] in your work sheet.
2. the quick cubic solver is "polyroots".
The Cardan cubic does not supports complex roots.
There is a special cubic solver from Maple [attached].
3. the classical solve [x,y,z ...] works simply.
It may fail if the system is not true, for instance if
the matrix is not from true numbers. Observe carefully
the example so much from so little.

Jean

Cubic solver.sm (49kb) downloaded 22 time(s).

Solve [x,y,z] Compactum.sm (93kb) downloaded 24 time(s).

SMath Solving Equations.sm (227kb) downloaded 26 time(s).


Offline JoeF  
#7 Posted : 03 April 2017 05:06:18(UTC)
JoeF


Rank: Member

Groups: Registered
Joined: 27/02/2017(UTC)
Posts: 14
United States

Thank you both
Joe
Offline Jean Giraud  
#8 Posted : 03 April 2017 12:42:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Hello Joe,

This Smath document is interesting. At the end of page 2, the graph is in two segments.
The blue segment is the plot of the explicit subsonic Mach, the red segment is the
plot of the supersonic Mach.
The supersonic is the implicit 'solve' roots(3). As 'x' runs on the canvas, "roots"
solves for each encountered canvas pixel, thus the very fine trace ... much finer than
Mathcad 11 and earlier versions that did plot on ½ pica.

The other CAS that plots fine trace is "OriginLab". It does not plot function f(x),
it plots from data vector but it splines "Bézier" between canvas points. Thus provides
as fine trace as Smath.

Cheers, Jean

Inst_Mach Number Pitot.sm (192kb) downloaded 25 time(s).
Offline JoeF  
#9 Posted : 03 April 2017 18:22:45(UTC)
JoeF


Rank: Member

Groups: Registered
Joined: 27/02/2017(UTC)
Posts: 14
United States

Thank you Jean -I will look it over. I am still working on the cubic solver file you posted.
Joe
Offline JoeF  
#10 Posted : 05 April 2017 19:24:58(UTC)
JoeF


Rank: Member

Groups: Registered
Joined: 27/02/2017(UTC)
Posts: 14
United States

Originally Posted by: omorr Go to Quoted Post
Hello Joe,

In your example roots(f(x),x)= will not work because you have x defined previously. Function roots() needs undefined variables. There is no consensus here about undefined variables in the cases similar like this one. You might use some variables that have low chances to be defined in your worksheet (something like roots(f(#x),#x)= or roots(f(_x),_x)= etc.)

Regards,
Radovan


Radovan:
Lo and behold after spending a lot of time trying to work the issue and then posting the question on this forum, on the next page of the primer was exactly what you said............
Joe
Users browsing this topic
Similar Topics
Design Response Spectra - Graphing (Questions)
by GFDIntano 09/05/2023 11:31:47(UTC)
Trouble Graphing Indexed Values (Samples)
by Bocato 19/01/2020 00:34:50(UTC)
Graphing a Range Valued (Questions)
by Bocato 08/12/2019 03:35:33(UTC)
Graphing Problem (Questions)
by Dave.ca 04/10/2017 05:38:03(UTC)
Program for Graphing (Questions)
by JoeF 25/03/2017 20:25:22(UTC)
graphing inequalities (Questions)
by RonaldModesitt 08/07/2012 22:13:29(UTC)
Graphing Without Gridlines (Questions)
by .plaid 24/06/2011 00:51:31(UTC)
Graphing using functions as both the x and y axis. (Feature Requests)
by justinroose 11/05/2011 23:56:14(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.