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 Razonar  
#1 Posted : 16 June 2021 02:16:01(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)
Limits of functions in SMath.

limit.sm (136kb) downloaded 172 time(s).
limit.pdf (443kb) downloaded 137 time(s).

Best regards.
Alvaro.
thanks 3 users thanked Razonar for this useful post.
on 16/06/2021(UTC),  on 16/06/2021(UTC),  on 16/06/2021(UTC)

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

Offline mkraska  
#2 Posted : 16 June 2021 18:25:52(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,984
Germany

Was thanked: 1124 time(s) in 721 post(s)
Very good to have a native limit function in SMath Studio. I was curious how Maxima could handle the examples.

Anyways thanks for the idea of indicating left and right side limit using exponentiation with a special character. That prevents unintended pre-processing as it happened with the original trick of adding +0 or -0. An alternative would be to use a "unit zero", i.e. +'0 and -'0.
I think that neither the unit zero nor the special character exponent method are obvious for the user.

Perhaps best would be to have three limit functions: lim(), limr() and liml() with the side indicator being part of the glyphs.

Mlimit.sm (135kb) downloaded 47 time(s).
Mlimit.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 16/06/2021(UTC),  on 16/06/2021(UTC)
Offline Razonar  
#3 Posted : 16 June 2021 19:39:29(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)
Originally Posted by: mkraska Go to Quoted Post

Perhaps best would be to have three limit functions: lim(), limr() and liml() with the side indicator being part of the glyphs.


Yes, I think that too. A note about the differences where Maxima assumes a positive for the result. Notice that in Maxima ∞ means +∞, but the idea in the SMath lim function is that ∞ means "unsigned infinitum", which is the true equivalent for 1/0, when 1/0+ = +∞ and 1/0- = -∞.

Clipboard01.jpg

Let me explain.

What's the sense for distinguish the cases 0, 0+, 0- if you don't do the same thing with ∞? This is: if 1/x -> ∞ for x -> 0, why 1/x -> ∞ for x -> 0+, that's wrong: ∞ = 1/0 but ∞ = 1/0+. There are 3 infinity's in the real line: plus, minus and unsigned, which means infinity for both sides at the same time, like what happens with 1/x at x = 0. And because Maxima have two infinity's, not three, is why can't calculate the last lim(x*sin(x),x,∞)=und which is not +∞, nor -∞ but "∞", this is, unsigned ∞ which grows to infinity for "both sides": to +∞ and -∞ at the same time, like when 1/x decrease to zero for 0+ and 0- at the same time.

Clipboard02.jpg

So Maxima have troubles for don't recognize the unsigned infinity: make continuous assumptions about the sign of the constants or directly can't give an answer for very simple examples. The infinitum in the lim function is an unsigned infinitum. Notice that in the complex plane the situation is more chaotic, you can grow to infinity in many distinct ways +∞ -∞*i, ∞ - ∞*i (unsigned in real axis, negative in the imaginary) ... etc.

Best regards.
Alvaro.
Offline mkraska  
#4 Posted : 17 June 2021 10:38:01(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,984
Germany

Was thanked: 1124 time(s) in 721 post(s)
Actually it is not Maxima making the assumptions on the sign of variables or expressions. In an interactiv Maxima session, in such cases the user is asked to provide additional information. Yet the plugin catches these questions and answers them with "pos" by default, because this is what you want in most cases, just to mention units. In order to make this transparent, an according message is bundled to the result. If you want to get rid of it, you can be specific using "assume().

I didn't know that 1/(x sin(x)) is said to converge to 0 for x -> inf. That must be sort of higher order understanding of limits, where a nonzero chance to find anything outside the eps-environment of the limit is accepted, if the limit of that chance is zero.

I don't think that using the infinity symbol for the set of pos and neg infinity is practical in SMath studio or on paper unless you insist on unary + operators being significant and a being something different from +a. I guess that would surprise most users.

Rather I'd recommend to use +-inf, given that +- is available as a set-generator already.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Razonar  
#5 Posted : 17 June 2021 19:53:15(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)
Originally Posted by: mkraska Go to Quoted Post
Actually it is not Maxima making the assumptions on the sign of variables or expressions. In an interactiv Maxima session, in such cases the user is asked to provide additional information. Yet the plugin catches these questions and answers them with "pos" by default, because this is what you want in most cases, just to mention units. In order to make this transparent, an according message is bundled to the result. If you want to get rid of it, you can be specific using "assume().


Yes, I wrote that for comparing with the SMath default's assumptions for the "infinity's algebra" (for calling that with something)

Clipboard01.jpg

Originally Posted by: mkraska Go to Quoted Post

I didn't know that 1/(x sin(x)) is said to converge to 0 for x -> inf. That must be sort of higher order understanding of limits, where a nonzero chance to find anything outside the eps-environment of the limit is accepted, if the limit of that chance is zero.


Yes, you're absolutely right. Sorry, I don't know about what I could be thinking at that moment.

Originally Posted by: mkraska Go to Quoted Post

I don't think that using the infinity symbol for the set of pos and neg infinity is practical in SMath studio or on paper unless you insist on unary + operators being significant and a being something different from +a. I guess that would surprise most users.

Rather I'd recommend to use +-inf, given that +- is available as a set-generator already.



You're right again about it is practical in a CAS or not. But it is not related about the unary operators + or -, it is related with the topological concept of path in a domain. For reals you have three paths for go to zero: by left, by right or by both sides at the same time. All CAS can handle that very well, but have troubles handling the inversion of that: 1/0+ = +∞ , 1/0- = -∞ but 1/0 = ∞ unsigned. For example, I don't see what the sense of not recognize this limit:

Clipboard02.jpg

Also I don't think that assign that result to infinity could surprise anyone. In the classic literature also you have unsigned infinity everywhere.

Rey Pastor, Análisis Matemático vol I, page 274 first introduce unsigned infinity limit for successions and +∞ -∞ as particular cases

Clipboard03.jpg

Piskunov, Differential and Integral Calculus, page 53 take an entire page for demonstrate that a function converges for unsigned infinity and put that as a theorem.

Clipboard04.jpg
That could be too much for real calculus, but I guess that it is the preamble for work with the complications of the topology of the complex plane in a further study of limits. So, I agree with you that it could be impractical to introduce it in SMath, but also what I see are unnecessary complications without it.

Best regards.
Alvaro.
Users browsing this topic
Similar Topics
limits ... solve (Samples)
by Jean Giraud 18/09/2023 17:51:19(UTC)
Integration with infinity limits problem (Bugs & Problems)
by Arios Jentu 02/05/2019 17:07:34(UTC)
[SS-85] Units in Integration limits (Bugs & Problems)
by G-Tate 31/01/2019 15:07:40(UTC)
[2d Plot] Axis limits (Feature Requests)
by crun 30/03/2018 00:43:40(UTC)
Limits of functions of 2 variables (Questions)
by frapuano 21/02/2017 23:58:54(UTC)
More advanced 2D plot/graph controls (i.e. plot/axis limits, labels & legend) (Feature Requests)
by gmintenko 16/01/2012 11:13:36(UTC)
How to set asymmetric limits on the axis of a 2D graph? (Questions)
by zeebob 15/12/2010 01:15:26(UTC)
Problem? Definite integral with variable limits (Bugs & Problems)
by omorr 23/07/2009 01:58:15(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.