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 ?

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState