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 Basile  
#1 Posted : 25 June 2016 01:45:22(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
X-Y plot plotting two functions:
smath error 36.JPG

Basile

Edited by moderator 26 June 2016 13:49:46(UTC)  | Reason: title updated - marked as bug

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

Offline Razonar  
#2 Posted : 25 June 2016 03:35:35(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi Basile. A bug without the file could be hard to interpret.
But, unregarding math or bugs, you're trying to use negative frequencies. Are you sure about what could be represent that? Also, a zero frequency, what is it? Direct current?
Frequencies also are usually represented in a log scale.
Best regards.
Alvaro.
Offline Basile  
#3 Posted : 25 June 2016 04:42:36(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Alvaro,

All you say about the physics of the problem, you are right.

But look the mathematics, just plotting a function.
Look above, the X.L(f) plots fine.

Similarly plots fine if I use the Plot-2D.
smath error 37.JPG
Basile
Offline Razonar  
#4 Posted : 25 June 2016 05:19:22(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi Basile. You discover a couple of nice and unwanted visual special effects in blue. I know near nothing about smath plugins, and can't help about them.
Best regards.
Alvaro.
Offline Jean Giraud  
#5 Posted : 25 June 2016 06:38:12(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Two things Basile:
1. Your unit systen is wrong [L => H, C => F]
2. Xc, XL have nothing to do with an LC circuit.

XL is equal to f(x):= dontknow*x
XC is equal to f(x):= 1/dontknow*x

https://en.wikipedia.org/wiki/LC_circuit
Offline Basile  
#6 Posted : 25 June 2016 15:38:01(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,

My system of units is NOT wrong.

Capacitance in Farad
Inductance in Henry

Reactance of both in Ohm.

Basile
Offline Davide Carpi  
#7 Posted : 26 June 2016 13:51:00(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Seems the issue is related to negative infinity
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#8 Posted : 26 June 2016 15:18:34(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Basile,

What you did is no not correct: You copied the L
plot and put in it the C plot with the same L scales.
So, the C plot flies in the blue. Someting like this:
If you photograph a mouse and an elephant in the same
bed, you won't see both. If you adjust for elephant,
the mouse will be a dot pretty hard to isolate and
enlarge unless you have zillions of MP resolution ...

Jean

Forum Basile Plot.gif
Offline Jean Giraud  
#9 Posted : 26 June 2016 15:27:34(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
...

Forum Basile Plot.sm (5kb) downloaded 15 time(s).
Offline Basile  
#10 Posted : 26 June 2016 20:31:03(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,

Yes, it works with the Plot 2D.
The problem is with the X-Y plot. It disappears and freezes the instance of Smath!
As pointed by Davide a possible problem with minus infinity?

Basile
Offline Jean Giraud  
#11 Posted : 26 June 2016 22:05:08(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Basile Go to Quoted Post
The problem is with the X-Y plot. It disappears and freezes the instance of Smath!
As pointed by Davide a possible problem with minus infinity?


NO => Not as you think. X_Y is not an autoplot, it is a plot range.
If you plot sin(x) it falls in its default XY ranges OK. Otherwise
you have to range both directions. X_Y does not supports few things:
1. It does not plot x. It does not understand that 'x' is implicit
of 'x' = "1*x" neither implicit of 'x' = 'x+0'
2. It supports some common Engineering ranges 1*e ±3 [per say]
but will crash Smath instance if you want to range 1*e ± -15

X_Y is lovely in many projects but not in others.

Offline Ber7  
#12 Posted : 29 June 2016 19:02:35(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
By increasing the limit values of the function  the graph does not
pass through a pivotal point

Bug.sm (9kb) downloaded 13 time(s).
Offline Jean Giraud  
#13 Posted : 29 June 2016 20:31:53(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ber7 Go to Quoted Post
By increasing the limit values of the function


That's right but not a bug. Just that above the Y magnitude 45,
the canvas misses some points in the critial region.
More: does not fill the circle, plots x instead of +

Jean

X_Y Plot wisely.sm (12kb) downloaded 18 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 29/06/2016(UTC)
Offline Jean Giraud  
#14 Posted : 29 June 2016 20:38:02(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
...

Forum XY Bifurcation.gif
Users browsing this topic
Guest
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.