Maxima applications in linear algebra: Drawing function

Source: Internet
Author: User
Keywords function function linear algebra can
Tags applications different example function replaced set use

Two-dimensional drawing

The instructions for Maxima two-dimensional drawing are plot2d. Let's say we're going to draw 4x3−2x−2 this function, set the x-axis range from 5 to 5, and then this instruction:

(%I1) PLOT2D ([4 * x^3-2 * x-2],[x,-5,5]);

Three-dimensional drawing

Three-dimensional drawing is also easy, as long as you switch to Plot3d's instructions:

(%I2) plot3d (cos (-X^2+Y^3/4), [x,-4,4], [y,-4,4]);

Geomview is a Unix software, Maxima can use Geomview to make very beautiful 3D graphics. Let's look at the results of the previous example in Geomview output.

(%I3) plot3d (cos (-X^2+Y^3/4), [x,-4,4], [y,-4,4], [Plot_format,geomview]);

Geomview not only can draw a beautiful 3D graphics, more importantly, it can make up for some of the shortcomings of Maxima. For example, a 3D drawing of the Maxima itself can not display two or more function graphs (2D can) at the same time, but with Geomview, such a drawing becomes possible.

Point drawing

With a lot of drawing applications, you just need to draw a point, or some point to describe a function. This is actually simpler than drawing a function, but Maxima until version 5.9.2. Please refer to the manual for details (after 5.9.2).

Drawing of multiple functions

If you want to compare several functions, how do you want to order? Let's take a look at an example to see:

(%I4) plot2d ([cos (x), sin (x), tan (x)], [X, -2*%pi, 2*%pi], [y,-2,2]) $

This example draws a pattern of cos (x), sin (x), and Tan (x) at the same time.

Parametric drawing
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
We simply give an example of parametric drawing, please refer to the Maxima manual for details.

(%I5) plot2d ([parametric, cos (t), sin (t), [T,-2*%PI,2*%PI], [nticks,80]]);

Maxima Installation

The official website of Maxima has different versions of Maxima for use in various platforms:

http://maxima.sourceforge.net/

However, different platforms may have different options. I'll give you a rough explanation of how I propose to install. Whether you use Windows, Mac, or Linux, I recommend using TeXmacs as the interface, because it shows the most beautiful mathematical notation.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.