Extreme Graphics with Extrema

There also are special characters that you can use in indexing arrays. The statement x[*] refers to all the values in the vector. If you want the last element, you can use x[#]. The second-to-last element can be referenced with x[#-1].

You likely have all of your data stored in files. The simplest file format is a comma-separated list of values. Extrema can read in these types of files and store the data directly into a set of variables. If you have a file with two columns of data, you can load them into two variables with the statement:


READ file1.dat x y

You also can read in all of the data and store it into a single matrix with:


READ\matrix file1.dat m nrows

In order to do this, you need to provide the number of rows that are being read in. You also can generate data to be used in your analysis. If you simply need a series of numbers, you can use:


x = [startval:stopval:stepsize]

This will give you an array of numbers starting at startval, incrementing by stepsize until you reach stopval. You can use the GENERATE command to do this as well. The GENERATE command also will generate an array of random numbers with:


GENERATE\RANDOM x min max num_points

Extrema has all of the standard functions available, like the various types of trigonometric functions. The standard arithmetic operators are:

  • + — addition

  • - — subtraction

  • * — multiplication

  • / — division

  • ^ — exponentiation

  • () — grouping of terms

There also are special operators for matrix and vector operations:

  • >< — outer product

  • <> — inner product

  • <- — matrix transpose

  • >- — matrix reflect

  • /| — vector union

  • /& — vector intersection

There also is a full complement of logical Boolean operators that give true (1) or false (0) results.

Now that you have your data and have seen some of the basic functions and operators available, let's take a look at graphing this data and doing some analysis on it. The most basic type of graph is plotting a one-dimensional array. When you do this, Extrema treats the data as the y value and the array index as the x value. To see this in action, you can use:


x = [1:10:1]
GRAPH x

This plots a fairly uninteresting straight line (Figure 3).

Figure 3. Plotting a Vector of Values

______________________

Joey Bernard has a background in both physics and computer science. This serves him well in his day job as a computational research consultant at the University of New Brunswick. He also teaches computational physics and parallel programming.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Intersting Review!! I'm Gonna

Anonymous's picture

Intersting Review!! I'm Gonna Look in to this.

Reply to comment | Linux Journal

design orange county's picture

I thinκ this is one of the most ѵital informatіon for me.
And i am glad reading your artіcle. Вut wаnt to гemark on few genегal thіngs, The wеbsite stylе iѕ idеal,
the articles іs really great : D. Gоod jοb, cheers

Μу homepаge design orange county

A batch fashion

sunnyshow820's picture

It has both a complete graphical interface for interactive use in data analysis and a command language that allows you to process larger data sets or repetitive tasks in a batch fashion. From Android Phone review

The main consideration for

Anonymous's picture

The main consideration for most forms of Chinese clothing is comfort. Traditional Chinese clothes, at least the ones worn for daily life, were generally not form-fitting or tight. Ancient tunics for women were loosely worn down to their feet, and the tunics for men came to their knees and were worn over loose-fitting pants. During the Tang Dynasty, large, graceful sleeves become a fashion, reflecting the broadminded, artistic times. Chinese Products

corporate business law

corporate business law's picture

Thank you so much for this review! I found it very helpful, this seem like a program that would be of great use to me. Keep it up!

AAV Advisories - law of taxation in india & accounting management system

Gnuplot will be more ok

Anonymous's picture

want it

just use ROOT, the standard

Anonymous's picture

just use ROOT, the standard tool used in High Energy Physics

Why dont use gnuplot ?

Anonymous's picture

Why dont use gnuplot ?

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix