SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Integration with infinity limits problem
Rank: Newbie
Groups: Registered
Joined: 02/05/2019(UTC) Posts: 3 Location: Vladivostok
|
Something wrong happening with definite integration with infinities. For example, integrate sin(x)/x from 0 to infinity, we get pi/2, but SMath get me answer, what looks like negative infinity. But if I integrate it from negative to positive infinity, it shows me that X is not defined. Same result happening when I integrate (x-1)/ln(x) and 1/x from 1 to infinity. Also, I checked integral from -1 to 1 of X, I got something looks like zero (2.9*10^-17 approximately zero), and integral from 0 to infinity of 1/x, which looks like infinity (3.3*10^11 approximately infinity for this software). Is it a bug? And will be it ever fixed? Which integration numerical methods using this software? And how can I calculate this integrals in correct way? Thank you for answering.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Arios Jentu Something wrong happening with definite integration with infinities. For example, integrate sin(x)/x from 0 to infinity, we get pi/2, but SMath does not integrate, what looks like negative infinity. The Smath native Simpson integrator is often poor to scrap. It does not like long range of the variable of integration. The Romberg-Simpson kernel copes nicely for this last case. For your other functions: please attach the Smath work sheet. Jean Arios.sm (10kb) downloaded 28 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Arios Jentu Something wrong happening with definite integration with infinities. For example, integrate sin(x)/x from 0 to infinity, we get pi/2, but SMath get me answer, what looks like negative infinity. But if I integrate it from negative to positive infinity, it shows me that X is not defined. Same result happening when I integrate (x-1)/ln(x) and 1/x from 1 to infinity. Also, I checked integral from -1 to 1 of X, I got something looks like zero (2.9*10^-17 approximately zero), and integral from 0 to infinity of 1/x, which looks like infinity (3.3*10^11 approximately infinity for this software). Is it a bug? And will be it ever fixed? Which integration numerical methods using this software? And how can I calculate this integrals in correct way? Thank you for answering. Globally: your testing has no interest in Engineering works x [-1 .. 1] = 0 by inspection 1/x = infinity by deduction (x-1)/ln(x) [1 .. infinity] = infinity ... Non-sense coz no application. (x-1)/ln(x) [0 .. some reasonable up] try Romberg-Simpson When you are stuck, visit WolframAlpha on line integrator cost [0.00 $] Always plot first.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
@ 9838 km distance, my little eye can spy your red x not defined
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 02/05/2019(UTC) Posts: 3 Location: Vladivostok
|
This is my file, I wrote some comments here. I know about it's engineering application, and I know about wolfram alpha. But I search analogs for MathCAD, with client for Linux (and free will be good). I've found SMath, and my basic tasks here works great (studying tasks), but I've tried something, what I'm interested in, and this won't working correct in reason of radius of convergence of this numerical method. Thank you for answer. Also, your code for integration using Romberg Transform works fine for sin(x)/x, but gets something not correct for (x-1)/ln(x) from 0 to 1. Maybe reason is closest limits, does not working for this method. jentu.sm (9kb) downloaded 16 time(s).Edited by user 03 May 2019 07:07:12(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Will be back tomorrow, while you are up I'm horizontal in minutes. Smath has been exhausted as much as Mathcad about numerical integration. In short: Smath + utilities is equivalent to Mathcad. The other method that does not lie and still the reference in many standards is Legendre Quadrature. I have up to 63/64. They exists up to ~ 1000 but can't download ... see you soon.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Maple will do this, but Maxima failed in the recent nightly build. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 02/05/2019(UTC) Posts: 3 Location: Vladivostok
|
Originally Posted by: omorr Maple will do this, but Maxima failed in the recent nightly build. Regards, Radovan Thank you. Maple works great (but slowly, because running wine). But Maxima plugin doesn't work with Linux.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Arios Jentu But I search analogs for MathCAD, with client for Linux (and free will be good) I have added few more of those Edu. Quiz In short and within reason: Smath 1/1 Mathcad Remember, no numerical maths are exact, except arithmetic + ... accepted -,* sub-accepted / NO function exist in computing machinery, all are approximations In your Quiz and in maths what's the value ± ∞ Smath does not interpret more than what's computable. Cheers ... Jean jentu.sm (67kb) downloaded 40 time(s).
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Integration with infinity limits problem
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.