REDUCE CAS 入门

一直在找一个简单易用的CAS(Computer Algebra System); REDUCE是一个历经数载的CAS系统,简单便携高效率;

Windows,Unix,iPhone (App store:iCAS)下都能用; 官方网站:http://reduce-algebra.com/

下载地址:http://reduce-algebra.sourceforge.net/

官方说明书pdf:http://reduce-algebra.com/docs/reduce.pdf

 

简单的学习了一下,记录在此:

REDUCE CAS tutorial: (Details refer to official manual)

For first time beginners:

 

1. add 2+1

: % This is how to use comment, (Morning Lab, 10/20/2013)

: %Make sure to add “;”  after expressions to get result

: 2+1;

 

2.  x^2-4x+3 = 0, x?

:solve({x^2-4x+3},x);

 

3. a*x-b*y+x = 0,  y-c = 0, what is x and y?

: solve({a*x-b*y+x,y-c},{x,y});

4. How to use result from previous answer, eg: 1 + 5 = 6, 6+7 =?

:1+5;

6

: ws +7;

13

: ws represents previous result

 

5. Integral x^2

:int(x^2,x);

 

6. Integral x^2, x from 1 to 3

:int(x^2,x,1,3);

 

7. differential

:df(x^2,x);

 

8. d2Y/dX2

:df(y,x,2);

 

9.

cos y means  cos (y)

4x means 4*x

 

10. 8!

: factorial(8);

 

11. Display decimal point

: on rounded; print_precision 50;

: off rounded; % turn it off

 

12. Reserved: E, I, PI, T, e …  check official user manual

 

13. Plot 3D:

:load_package “gnuplot”;  % In some version, the package will be loaded automatically upon using plot command

:plot( cos(sqrt(x**2 + y**2)), x=(-3 .. 3), y=(-3 .. 3), hidden3d)  % don’t forget the space:  (-3 space .. space 3)

 

 

14: Plot 2D:

:load_package “gnuplot”;

:plot(sin(x)/x,x=(-5 .. +5));

 

15. Log

LOG is the natural logarithm (and equivalent to LN), and LOGB has two
arguments of which the second is the logarithmic base.

 

 

Reference:

1-12 from official manual: http://reduce-algebra.com/docs/reduce.pdf

13-14 from: http://www.math.utah.edu/faq/reduce/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s