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.

460 Formula Functions Reference Appendix C<br />

Character Functions<br />

SinH, CosH, TanH<br />

The SinH and CosH functions return the hyperbolic sine and hyperbolic cosine of their respective<br />

arguments. The expression SinH(1) evaluates as 1.175201, and CosH(0) evaluates as 1.0. The TanH<br />

function returns the hyperbolic tangent of its argument. The expression TanH(1) evaluates as 0.761594.<br />

ArcSinH, ArcCosH, ArcTanH<br />

The ArcSinH and ArcCosH functions return the inverse hyperbolic sine and inverse hyperbolic cosine<br />

of their respective arguments. The expression ArcSinH(1) evaluates as 0.881374, and ArcCosH(1) is 0.<br />

The ArcTanH function returns the inverse hyperbolic tangent of its argument. The expression<br />

ArcTanH(0.5) evaluates as 0.549306.<br />

Character Functions<br />

You can create a formula that accepts character arguments or returns character strings and converts the<br />

data type of a value from numeric to character, or character to numeric. See the JMP Scripting <strong>Guide</strong> for<br />

details about syntax.<br />

Char<br />

Produces a character string that corresponds to the digits in its numeric argument. For example,<br />

Char(1.123) evaluates as 1.123. See the JMP Scripting <strong>Guide</strong>, for details.<br />

Concat ||<br />

Concatenates character strings to produce a new string with the function’s second character argument<br />

appended to the first. For example, "Dr." || " " || name produces a new string consisting of the title Dr.<br />

followed by a space and the contents of the name string. (See also “Concat Items,” p. 464.)<br />

Contains<br />

Returns the numeric position within the first argument of the first instance of the second argument, if<br />

it exists. The second argument can contain one ore more characters. If the second argument does not<br />

exist, Contains returns a zero. For example, Contains("Veronica Layman", "ay") evaluates as 11.<br />

Contains("Lillie Layman", "L") evaluates as 1. The third argument is optional and is a numeric value<br />

that specifies the starting position. If offset is negative, Contains searches backward from offset from the<br />

end of the string.<br />

Munger<br />

Computes new character strings from existing strings by inserting or deleting characters. It can also<br />

produce substrings, calculate indices, and perform other tasks depending on how you specify its<br />

arguments. The Munger function treats uppercase and lowercase letters as different characters.<br />

Text is a character expression. Munger applies the other three arguments to this string to compute a<br />

result.<br />

Offset is a numeric expression indicating the starting position to search in the string. If Offset is greater<br />

than the position of the first instance of the find argument, the first instance is disregarded.

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

Saved successfully!

Ooh no, something went wrong!