Tuesday, January 17, 2012

Mathematica for MATLAB users

I plan on expanding this post later; for now it's just a place to put this very useful link:

http://meng6.net/pages/matlab_mathematica_equivalent_commands/

Clear all:
ClearAll["Global`*"]

Defining a matrix: A = [1 2 ; 3 4]
A = {{1, 2}, {3, 4}}

This gives you something horrendous:
Integrate[ 1/(x + 1)^2 , {x , y, 1} 
But this gives you the nice expression that you probably wanted:
Simplify[Integrate[ 1/(x + 1)^2 , {x , y, 1} ], {y > 0 , y < 1}]


No comments:

Post a Comment