Free alternative to Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter E7.5
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around finding a free alternative to Mathematica for performing symbolic mathematics, particularly for evaluating a specific integral involving sine and hyperbolic sine functions. Participants share their experiences with various software options and discuss the results obtained from Mathematica.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant reports an unexpected result from Mathematica for the integral and seeks a free alternative for home use.
  • Another participant suggests Sage as a free open-source software for symbolic mathematics, although they note it is not as effective as Mathematica.
  • A different participant mentions Axiom as another option, emphasizing the need for careful attention to detail when using it.
  • Some participants express confusion over the results from Mathematica, with one stating they obtained a limit of 0, while another participant challenges the original poster's input into Mathematica.
  • Octave is proposed as a potential alternative, but it is clarified that it cannot perform symbolic mathematics like Mathematica.
  • There are multiple mentions of the limitations of the software options discussed, particularly regarding their ability to handle the specific integral in question.

Areas of Agreement / Disagreement

Participants do not reach a consensus on which software is the best alternative to Mathematica. There are differing opinions on the effectiveness of Sage, Axiom, and Octave, and participants express uncertainty about the results obtained from Mathematica.

Contextual Notes

Some participants note that the results from Mathematica can vary based on the version used and the specific input format, indicating potential dependencies on software versions and input methods.

E7.5
Messages
16
Reaction score
0
In Mathematica, I computed the integral ##\lim\limits_{n\to\infty} \frac{1}{n^2} \int\limits_{0}^{\frac{\pi}{2}} \frac{\sin((2n+1)x)}{\sinh(x)} \ dx## and it incorrectly output the answer ##-\frac{3\pi}{2}##. I wanted to try a different CAS software that might provide a different answer, but so far wxMaxima has not worked and I'm not sure what else I can use. I'm also looking for a free alternative because I want to use it at home, since I can only use Mathematica in school and I can't afford a personal license for Mathematica.
 
Physics news on Phys.org
There is an open source free software called Sage that does symbolic mathematics. It's not as good as Mathematica, but it's free.
 
phyzguy said:
There is an open source free software called Sage that does symbolic mathematics. It's not as good as Mathematica, but it's free.
This software takes up 7 gigabytes :eek: but if it can compute this integral, then I'll keep it around.

Edit: Nope, it doesn't work :(
 
Last edited:
You might try Axiom. It can be demanding when it comes to details, but it might get you an answer if you carefully follow all the rules.

I'm puzzled how you ended up with -3Pi/2 from Mathematica. When I try

Code:
Limit[1/n^2*Integrate[Sin[(2*n+1)*x]/Sinh[x], {x, 0, Pi/2}], n->Infinity]

it can do the integration but can't seem to find the last step to resolve the limit.
 
When I ran this with my copy of Mathematica 7, it gave me the (I think correct) answer of 0. Are you sure you entered it into Mathematica correctly?

Code:
In[21]:= Limit[
 n^-2*Integrate[Sin[(2 n + 1) x]/Sinh[x], {x, 0, \[Pi]/2}], 
 n -> \[Infinity]]

Out[21]= 0
 
Code:
In[1]:= $Version

Out[1]= "9.0 for Microsoft Windows (64-bit) (January 25, 2013)"

In[2]:= Limit[1/n^2*Integrate[Sin[(2*n + 1)*x]/Sinh[x], {x, 0, Pi/2}], n -> Infinity]

Out[2]= Limit[-((I (Beta[E^Pi, (1/2-I/2)-I n, 0] - Beta[E^Pi, (1/2+I/2)+I n, 0] - 
     I Pi Tanh[(1/2+n) Pi]))/(2 n^2)), n->Infinity]
 
Sorry, I meant to address my question to the OP. E7.5, can you show us the Mathematica code you used? I think the integral itself approaches pi/2 as n gets large, so when divided by n^2, the limit should be zero, which is what my version of Mathematica gave.
 
I think Octave is what you want. It is an open source clone of MatLab and shares much of the same language as MatLab. I recently installed it on my virtual machine and was able to run most of the scripts I wrote in MatLab that I use for my research on Octave without too much debugging.

http://www.gnu.org/software/octave/
 
$mathieu said:
I think Octave is what you want. It is an open source clone of MatLab and shares much of the same language as MatLab. I recently installed it on my virtual machine and was able to run most of the scripts I wrote in MatLab that I use for my research on Octave without too much debugging.

http://www.gnu.org/software/octave/

Matlab is not Mathematica. Octave can't do symbolic math.
 
  • #10
DrClaude said:
Matlab is not Mathematica. Octave can't do symbolic math.

Oops, should have read more closely, my bad.
 
  • #11
try in Mathematica

In[15]= FullSimplify[Limit[n^-2*Integrate[Sin[(2 n+1) x]/Sinh[x],{x,0,π/2}],n->∞]]

Out[15]= 0

whereas

Limit[1/n^2*Integrate[Sin[(2*n+1)*x]/Sinh[x],{x,0,Pi/2}],n->Infinity]

gives an incomplete answer.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K