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 Arios Jentu  
#1 Posted : 02 May 2019 17:07:34(UTC)
Arios Jentu

Rank: Newbie

Groups: Registered
Joined: 02/05/2019(UTC)
Posts: 3
Russian Federation
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.
46.png

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

Offline Jean Giraud  
#2 Posted : 03 May 2019 01:03:21(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: Arios Jentu Go to Quoted Post
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).
Offline Jean Giraud  
#3 Posted : 03 May 2019 01:59:44(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: Arios Jentu Go to Quoted Post
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.
Offline Jean Giraud  
#4 Posted : 03 May 2019 03:10:30(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)
IntSanity.PNG
Offline Jean Giraud  
#5 Posted : 03 May 2019 04:35:49(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)
@ 9838 km distance, my little eye can spy your red x not defined

LargeNumbers.PNG
Offline Arios Jentu  
#6 Posted : 03 May 2019 07:03:39(UTC)
Arios Jentu

Rank: Newbie

Groups: Registered
Joined: 02/05/2019(UTC)
Posts: 3
Russian Federation
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).
30.png

Edited by user 03 May 2019 07:07:12(UTC)  | Reason: Not specified

Offline Jean Giraud  
#7 Posted : 03 May 2019 07:43:23(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)
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.
Offline omorr  
#8 Posted : 03 May 2019 08:04:37(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)
Maple will do this, but Maxima failed in the recent nightly build.

ln2.PNG

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Arios Jentu  
#9 Posted : 03 May 2019 09:56:20(UTC)
Arios Jentu

Rank: Newbie

Groups: Registered
Joined: 02/05/2019(UTC)
Posts: 3
Russian Federation
Location: Vladivostok

Originally Posted by: omorr Go to Quoted Post
Maple will do this, but Maxima failed in the recent nightly build.

ln2.PNG

Regards,
Radovan



Thank you. Maple works great (but slowly, because running wine). But Maxima plugin doesn't work with Linux.
52.png
Offline Jean Giraud  
#10 Posted : 03 May 2019 15:31:22(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: Arios Jentu Go to Quoted Post
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).
Users browsing this topic
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.