14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix C Formula Functions Reference 471<br />

Conditional Functions<br />

Figure C.7 Evaluations of And and Or Expressions<br />

Not !<br />

Evaluates as 1 when its argument is false. Otherwise, Not evaluates as 0. When you apply the Not<br />

function, use parentheses where necessary to avoid ambiguity. For example, !(weight==64) can be<br />

either true or false (either 1 or 0), but (!weight)==64 is always false (0) because Not can return only<br />

0 or 1. Expressions such as !(weight==64) can also be entered as weight != 64.<br />

Interpolate<br />

Linearly interpolates the y-value between two points, x1, y1 and x2, y2 that corresponds to the<br />

arguments you give. You can insert additional pairs of x, y arguments with the insert key. Interpolate<br />

finds the pair of x, y points that correspond to the x-value and completes the interpolation.<br />

Step<br />

Is like Interpolate except that it returns the y-value corresponding to the greatest x-value less than or<br />

equal to the x and y arguments. That is, it finds the corresponding y for a given x from a step function<br />

rather than a linear fit between points. Like Interpolate, you can have as many x and y argument pairs as<br />

you want.<br />

C Formula Functions Reference<br />

For<br />

Repeats the statements in the body argument as long as the while condition is true. The init and next<br />

control the iterations.<br />

While<br />

Repeatedly tests the expr condition and executes the body until expr is no longer true.<br />

Break, Continue<br />

Break stops execution of a loop completely and continues to the statement following the loop.<br />

Continue ends the current iteration of a loop and begins the loop at the next iteration.<br />

Both are used in For, While, and For Each Row loops.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!