Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Gnuplot and Maxima under Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to install Gnuplot and Maxima under the Linux system". In the daily operation, I believe that many people have doubts about how to install Gnuplot and Maxima under the Linux system. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to install Gnuplot and Maxima under the Linux system". Next, please follow the editor to study!

Gnuplot

Gnuplot is a command line scripting and multi-functional graphics tool for different platforms. Although it has "GNU" in its name, it is not part of the GNU operating system. Although it is not freely licensed, it is free software (which means it is copyrighted but free to use).

To install gnuplot on a Ubuntu system (or derivative system), type:

The code is as follows:

Sudo apt-get install gnuplot gnuplot-x11

Enter a terminal window. Start the program and enter:

The code is as follows:

Gnuplot

You will see a simple command line interface:

Where you can directly enter the function to start. The drawing command draws a graph.

Enter content, such as

The code is as follows:

Plot sin (x) / x

As gnuplot prompts, a new window will open and the image will be displayed in it.

You can also set different properties of the graph immediately, such as specifying "title" like this.

The code is as follows:

Plot sin (x) title 'Sine Function', tan (x) title' Tangent'

You can go a little further and use the splot command to draw 3D graphics:

The code is as follows:

Splot sin (x*y/20)

There are several basic configuration options for this graphics window

Maxima

Maxima is a computer algebra system developed by Macsyma, according to its SourceForge page:

"Maxima is a system of manipulating symbols and numerical expressions, including differentials, integrals, Taylor series, Laplace transformations, ordinary differential equations, linear equations, polynomials, sets, lists, vectors, matrices and tensors. Maxima produces high-precision calculations through precise fractions, arbitrary precision integers and variable precision floating-point numbers. Maxima can draw functions and data in two-dimensional and three-dimensional ways."

Most Ubuntu derivative systems have Maxima binary packages and its graphical interface. To install these packages, type:

The code is as follows:

Sudo apt-get install maxima xmaxima wxmaxima

In the terminal window, Maxima is a command-line tool with no UI, but if you start wxmaxima, you will enter a simple but powerful graphical user interface.

You can start with a simple input. (hint: enter will add more lines. If you want to evaluate an expression, use "Shift + Enter". )

Maxima can be used for some simple problems, so it can also be used as a calculator:

And some of the more complex issues:

It uses gnuplot to make drawing simple:

Or draw some complex graphics.

(it requires gnuplot-X11 's package to display them. )

In addition to representing expressions as graphics, Maxima can also export them in latex format or do some common operations through the right-click shortcut menu.

But the main menu still offers a lot of blockbuster features, and of course Maxima is much more than that, and there is also a widely used online document.

Summary

Mathematics is not an easy subject, and these excellent software on Linux do not make mathematics easier, but these applications make it easier and easier to use mathematics. Both of these applications are just an introduction to what Linux provides. If you are serious about math and need more features and rich documentation, then you should take a look at these Mathbuntu projects.

At this point, the study on "how to install Gnuplot and Maxima under the Linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report