AIMMS Function Reference - Arithmetic Functions



Similar documents
FX 260 Training guide. FX 260 Solar Scientific Calculator Overhead OH 260. Applicable activities

UNIT 1: ANALYTICAL METHODS FOR ENGINEERS

EXCEL FUNCTIONS MOST COMMON

Find the length of the arc on a circle of radius r intercepted by a central angle θ. Round to two decimal places.

Function Name Algebra. Parent Function. Characteristics. Harold s Parent Functions Cheat Sheet 28 December 2015

Expense Management. Configuration and Use of the Expense Management Module of Xpert.NET

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123

SOME EXCEL FORMULAS AND FUNCTIONS

PURSUITS IN MATHEMATICS often produce elementary functions as solutions that need to be

MATLAB Basics MATLAB numbers and numeric formats

Core Maths C2. Revision Notes

POLYMATH VERSION 4.02 USER-FRIENDLY NUMERICAL ANALYSIS PROGRAMS

The OptQuest Engine Java and.net Developer's Guilde

Exercises in Mathematical Analysis I

Section 5-9 Inverse Trigonometric Functions

AIMMS Function Reference - Data Change Monitor Functions

Chapter 7 Outline Math 236 Spring 2001

BA II PLUS Calculator

BA II PLUS PROFESSIONAL Calculator

Core Maths C3. Revision Notes

Graphing Trigonometric Skills

Infor LN CRM User Guide for CRM

Chapter 5 Functions. Introducing Functions

ERDAS Spatial Modeler Language Reference Manual

BA II Plus. Guidebook. Texas Instruments Instructional Communications. Dave Caldwell David Santucci Gary Von Berg

Parameters and Expressions

TESTING CENTER SARAS USER MANUAL

PRE-CALCULUS GRADE 12

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

(1.) The air speed of an airplane is 380 km/hr at a bearing of. Find the ground speed of the airplane as well as its

IBM Unica Macros for IBM Unica Marketing Version 8 Release 6 May 25, User's Guide

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Display Format To change the exponential display format, press the [MODE] key 3 times.

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style

Estimated Pre Calculus Pacing Timeline

1 TRIGONOMETRY. 1.0 Introduction. 1.1 Sum and product formulae. Objectives

BA II PLUS Calculator

SCIENTIFIC CALCULATOR OPERATION GUIDE. <V/R Series>

FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover)

HP 10bII+ Financial Calculator User s Guide

Solutions to Exercises, Section 5.1

Experiment #1, Analyze Data using Excel, Calculator and Graphs.

5.3 SOLVING TRIGONOMETRIC EQUATIONS. Copyright Cengage Learning. All rights reserved.

Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1

MATLAB LECTURE NOTES. Dr. ADİL YÜCEL. Istanbul Technical University Department of Mechanical Engineering

RAJALAKSHMI ENGINEERING COLLEGE MA 2161 UNIT I - ORDINARY DIFFERENTIAL EQUATIONS PART A

Version 1.0. General Certificate of Education (A-level) January Mathematics MPC4. (Specification 6360) Pure Core 4. Final.

6. ARITHMETIC AND DATE FUNCTIONS

SCIENTIFIC CALCULATOR OPERATION GUIDE. <Write View>

DRAFT. Further mathematics. GCE AS and A level subject content

With the Tan function, you can calculate the angle of a triangle with one corner of 90 degrees, when the smallest sides of the triangle are given:

Algebra and Geometry Review (61 topics, no due date)

F = ma. F = G m 1m 2 R 2

Functions and their Graphs

Differentiation and Integration

Lies My Calculator and Computer Told Me

y 1 x dx ln x y a x dx 3. y e x dx e x 15. y sinh x dx cosh x y cos x dx sin x y csc 2 x dx cot x 7. y sec 2 x dx tan x 9. y sec x tan x dx sec x

CHAPTER 5 Round-off errors

25 The Law of Cosines and Its Applications

Mathematics I, II and III (9465, 9470, and 9475)

Pre-Calculus Semester 1 Course Syllabus

FACTORING ANGLE EQUATIONS:

Std. XII Commerce Mathematics and Statistics I

Trigonometry LESSON ONE - Degrees and Radians Lesson Notes

Start Accuplacer. Elementary Algebra. Score 76 or higher in elementary algebra? YES

Final Exam Review: VBA

Addition Methods. Methods Jottings Expanded Compact Examples = 15

fx-83gt PLUS fx-85gt PLUS User s Guide

AIMMS Function Reference - Set Functions

Trigonometry for AC circuits

AP Calculus AB 2004 Scoring Guidelines

Direct Connection to IT Systems. Direct Connection to IT Systems

2009 Chicago Area All-Star Math Team Tryouts Solutions

Precalculus REVERSE CORRELATION. Content Expectations for. Precalculus. Michigan CONTENT EXPECTATIONS FOR PRECALCULUS CHAPTER/LESSON TITLES

MEMORANDUM. All students taking the CLC Math Placement Exam PLACEMENT INTO CALCULUS AND ANALYTIC GEOMETRY I, MTH 145:

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

Common Math Errors Written by Paul Dawkins

Calculus. Contents. Paul Sutcliffe. Office: CM212a.

ALGEBRA 2/TRIGONOMETRY

8-3 Dot Products and Vector Projections

2312 test 2 Fall 2010 Form B

PROPERTIES OF ELLIPTIC CURVES AND THEIR USE IN FACTORING LARGE NUMBERS

Friday, January 29, :15 a.m. to 12:15 p.m., only

Elementary Functions and Calculators

MBA Jump Start Program

Background Information on Exponentials and Logarithms

LESSON EIII.E EXPONENTS AND LOGARITHMS

The Mathematics Diagnostic Test

Graphing Calculator Scientific Calculator Version 2.0

Higher Education Math Placement

X On record with the USOE.

Students Currently in Algebra 2 Maine East Math Placement Exam Review Problems

MPE Review Section III: Logarithmic & Exponential Functions

Geometry Notes RIGHT TRIANGLE TRIGONOMETRY

The Exponential Form of a Complex Number

INTRODUCTORY SET THEORY

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language

SOLVING TRIGONOMETRIC EQUATIONS

(15.) To find the distance from point A to point B across. a river, a base line AC is extablished. AC is 495 meters

Transcription:

AIMMS Function Reference - Arithmetic Functions This file contains only one chapter of the book. For a free download of the complete book in pdf format, please visit www.aimms.com Aimms 3.13

Part I Function Reference

Arithmetic Functions Aimms supports the following arithmetic functions: Abs ArcCosh ArcCos ArcSin ArcSinh ArcTanh ArcTan Ceil Cos Cosh Cube Degrees Div ErrorF Ep Floor Log Log10 MapVal Ma Min Mod Power Precision Radians Round ScalarValue Sign Sin Sinh Sqr Sqrt Tan Tanh Trunc

Val Arithmetic Functions 3

Arithmetic Functions 4 Abs Abs(! (input numerical epression A scalar numerical epression. The function Abs returns the absolute value of. The function Abs can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems if the argument assumes values around 0. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 5 ArcCos ArcCos(! (input numerical epression A scalar numerical epression in the range[ 1, 1]. The ArcCos function returns the arccosine of in the range 0 toπ radians. A run-time error results if is outside the range[ 1, 1]. The functionarccos can be used in constraints of nonlinear mathematical programs. The functions ArcSin, ArcTan, Cos. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 6 ArcCosh ArcCosh(! (input numerical epression A scalar numerical epression in the range[1,. The ArcCosh function returns the inverse hyperbolic cosine of in the range from 0 to. A run-time error results if is outside the range[1, ]. The function ArcCosh can be used in constraints of nonlinear mathematical programs. The functions ArcSinh, ArcTanh, Cosh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 7 ArcSin ArcSin(! (input numerical epression A scalar numerical epression in the range[ 1, 1]. The ArcSin function returns the arcsine of in the range π/2 to π/2 radians. A run-time error results if is outside the range[ 1, 1]. The functionarcsin can be used in constraints of nonlinear mathematical programs. The functions ArcCos, ArcTan, Sin. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 8 ArcSinh ArcSinh(! (input numerical epression A scalar numerical epression. The ArcSinh function returns the inverse hyperbolic sine of in the range from to. The function ArcSinh can be used in constraints of nonlinear mathematical programs. The functions ArcCosh, ArcTanh, Sinh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 9 ArcTan ArcTan(! (input numerical epression A scalar numerical epression. The ArcTan function returns the arctangent of in the range π/2 toπ/2 radians. The function ArcTan can be used in constraints of nonlinear mathematical programs. The functions ArcSin, ArcCos, Tan. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 10 ArcTanh ArcTanh(! (input numerical epression A scalar numerical epression in the range( 1, 1. The ArcTanh function returns the inverse hyperbolic tangent of. A run-time error results if is outside the range( 1, 1. The function ArcTanh can be used in constraints of nonlinear mathematical programs. The functions ArcCosh, ArcSinh, Tanh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 11 Ceil Ceil(! (input numerical epression A scalar numerical epression. The function Ceil returns the smallest integer value. The function Ceil will round to the nearest integer, if it lies within the equality tolerances equality absolute tolerance and equality relative tolerance. The function Ceil can be used in the constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems around integer values. When the numerical epression contains a unit, the function Ceil will first convert the epression to the corresponding base unit, before evaluating the function itself. The functions Floor, Round, Precision, Trunc. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference. Numeric tolerances are discussed in Section 6.2.2 of the Language Reference.

Arithmetic Functions 12 Cos Cos(! (input numerical epression A scalar numerical epression in radians. The Cos function returns the cosine of in the range 1 to 1. The function Cos can be used in constraints of nonlinear mathematical programs. The functions Sin, Tan, ArcCos. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 13 Cosh Cosh(! (input numerical epression A scalar numerical epression. The Cosh function returns the hyperbolic cosine of in the range 1 to. The function Cosh can be used in constraints of nonlinear mathematical programs. The functions Sinh, Tanh, ArcCosh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 14 Cube Cube(! (input numerical epression A scalar numerical epression. The function Cube returns 3. The function Cube can be used in constraints of nonlinear mathematical programs. The functions Power, Sqr, and Sqrt. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 15 Degrees Degrees(! (input numerical epression A scalar numerical epression. The function Degrees returns the value of converted from radians to degrees. The function Degrees can be used in constraints of linear and nonlinear mathematical programs. The function Radians. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 16 Div Div(,! (input numerical epression y! (input numerical epression y A scalar numerical epression. A scalar numerical epression unequal to 0. The function Div returns divided byy rounded down to an integer. A run-time error results if y equals 0. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 17 ErrorF ErrorF(! (input numerical epression A scalar numerical epression. The function ErrorF returns the error function value 1 2π e t2 2 The function ErrorF can be used in constraints of nonlinear mathematical programs. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference. dt.

Arithmetic Functions 18 Ep Ep(! (input numerical epression A scalar numerical epression. The function Ep returns the eponential valuee. The function Ep can be used in constraints of nonlinear mathematical programs. The functions Log, Log10. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 19 Floor Floor(! (input numerical epression A scalar numerical epression. The function Floor returns the largest integer value. The function Floor will round to the nearest integer, if it lies within the equality tolerances equality absolute tolerance and equality relative tolerance. The function Floor can be used in the constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems around integer values. When the numerical epression contains a unit, the function Floor will first convert the epression to the corresponding base unit, before evaluating the function itself. The functions Ceil, Round, Precision, Trunc. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference. Numeric tolerances are discussed in Section 6.2.2 of the Language Reference.

Arithmetic Functions 20 Log Log(! (input numerical epression A scalar numerical epression in the range(0,. The function Log returns the natural logarithm ln(. A run-time error results if is outside the range(0,. The function Log can be used in constraints of nonlinear mathematical programs. The functions Ep, Log10. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 21 Log10 Log10(! (input numerical epression A scalar numerical epression in the range(0,. The function Log10 returns the base-10 logarithm of. A run-time error results if is outside the range(0,. The function Log10 can be used in constraints of nonlinear mathematical programs. The functions Ep, Log. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 22 MapVal MapVal(! (input numerical epression A scalar numerical epression. The function MapVal returns the (integer mapping value of any real or special number, according to the following table. Value Description MapVal value number any valid real number 0 UNDF undefined (result of an arithmetic error 4 NA not available 5 INF + 6 -INF 7 ZERO numerically indistinguishable from zero, but has the logical value of one. 8 Special numbers in Aimms and the MapVal function are discussed in full detail in Section 6.1.1 of the Language Reference.

Arithmetic Functions 23 Ma Ma( 1,! (input numerical epression 2,! (input numerical epression.. 1,2,... Multiple numerical epressions. The function Ma returns the largest number among1,2,.... The function Ma can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems if the first order derivatives of two arguments between which the Ma function switches are discontinous. The function Min. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 24 Min Min( 1,! (input numerical epression 2,! (input numerical epression.. 1,2,... Multiple numerical epressions. The function Min returns the smallest number among1,2,.... The function Min can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems if the first order derivatives of two arguments between which the Min function switches are discontinous. The function Ma. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 25 Mod Mod(,! (input numerical epression y! (input numerical epression y A scalar numerical epression. A scalar numerical epression unequal to 0. The function Mod returns the remainder of after division by y. For y > 0, the result is an integer in the range 0,...,y 1 if both and y are integers, or in the interval[0,y otherwise. For y < 0, the result is an integer in the rangey 1,...,0 if both andy are integers, or in the interval(y, 0] otherwise. A run-time error results if y equals 0. The function Mod can be used in constraints of mathematical programs. However, nonlinear solver may eperience convergence problems if assumes values around multiples ofy. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 26 Power Power(,! (input numerical epression y! (input numerical epression y A scalar numerical epression. A scalar numerical epression. The function Power returnsraised to the powery. The following combination of arguments is allowed: > 0 = 0 andy> 0 < 0 andy integer In all other cases a run-time error will result. The function can be used in constraints of nonlinear mathematical programs. The functions Cube, Sqr, and Sqrt. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 27 Precision Precision(,! (input numerical epression y! (input integer epression y A scalar numerical epression. An integer epression. The function Precision returns rounded to y significant digits. The function Precision can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems around the discontinuities of the Precision function. When the numerical epression contains a unit, the function Precision will first convert the epression to the corresponding base unit, before evaluating the function itself. The functions Round, Ceil, Floor, Trunc. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 28 Radians Radians(! (input numerical epression A scalar numerical epression. The function Radians returns the value of converted from degrees to radians. The function Radians can be used in constraints of linear and nonlinear mathematical programs. The function Degrees. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 29 Round Round(,! (input numerical epression decimals! (optional integer epression A scalar numerical epression. decimals (optional An integer epression. The function Round returns the integer value nearest to. In the presence of the optional argument n the function Round returns the value of rounded to n decimal places left (decimals < 0 or right (decimals > 0 of the decimal point. The function Round can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may eperience convergence problems around the discontinuities of the Round function. When the numerical epression contains a unit, the function Round will first convert the epression to that unit, before evaluating the function itself. See also the option rounding compatibility in the option category backward compatibility. The functions Precision, Ceil, Floor, Trunc. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 30 ScalarValue ScalarValue( identifier,! (input element epression into AllIdentifiers suffi! (optional element epression into AllSuffiNames identifier A scalar element epression into AllIdentifiers suffi A scalar element epression into AllSuffiNames The function ScalarValue returns the value contained in the scalar identifier identifier or scalar reference identifier.suffi. When identifier or identifier.suffi is not a scalar numerical valued reference, the function ScalarValue returns 0.0. The function Val. The ScalarValue function is a function that operates on subsets of AllIdentifiers. Other functions that operate on subsets of AllIdentifiers are referenced in Section 24.4 of the Language Reference.

Arithmetic Functions 31 Sign Sign(! (input numerical epression A scalar numerical epression. The function Sign returns+1 if> 0, 1 if< 0 and 0 if= 0. The function Sign can be used in constraints of nonlinear mathematical programs. However, nonlinear solver may eperience convergence problems round 0. The function Abs. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 32 Sin Sin(! (input numerical epression A scalar numerical epression in radians. The Sin function returns the sine of in the range 1 to 1. The function Sin can be used in constraints of nonlinear mathematical programs. The functions Cos, Tan, ArcSin. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 33 Sinh Sinh(! (input numerical epression A scalar numerical epression. The Sinh function returns the hyperbolic sine of in the range to. The function Sinh can be used in the constraints of nonlinear mathematical programs. The functions Cosh, Tanh, ArcSinh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 34 Sqr Sqr(! (input numerical epression A scalar numerical epression. The function Sqr returns 2. The function Sqr can be used in constraints of nonlinear mathematical programs. The functions Power, Cube, and Sqrt. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 35 Sqrt Sqrt(! (input numerical epression A scalar numerical epression in the range[0,. The function Sqrt returns the. A run-time error results if is outside the range[0,. The function Sqrt can be used in the constraints of nonlinear mathematical programs. The functions Power, Cube, and Sqr. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 36 Tan Tan(! (input numerical epression A scalar numerical epression in radians. The Tan function returns the tangent of in the range to. The function Tan can be used in constraints of nonlinear mathematical programs. The functions Cos, Sin, ArcTan. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 37 Tanh Tanh(! (input numerical epression A scalar numerical epression. The Tanh function returns the hyperbolic tangent of in the range 1 to 1. The function Tanh can be used in constraints of nonlinear mathematical programs. The functions Cosh, Sinh, ArcTanh. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference.

Arithmetic Functions 38 Trunc Trunc(! (input numerical epression A scalar numerical epression. The function Trunc returns the truncated value of : Sign( Floor(Abs(. The function Trunc will round to the nearest integer, if it lies within the equality tolerances equality absolute tolerance and equality relative tolerance. The function Trunc can be used in the constraints of nonlinear mathematical programs. However, nonlinear solver may eperience convergence problems around integer argument values. When the numerical epression contains a unit, the function Trunc will first convert the epression to the corresponding base unit, before evaluating the function itself. The functions Ceil, Floor, Round, Precision. Arithmetic functions are discussed in full detail in Section 6.1.4 of the Language Reference. Numeric tolerances are discussed in Section 6.2.2 of the Language Reference.

Arithmetic Functions 39 Val Val( str! (input string or element epression str A scalar string or element epression. The function Val returns the numerical value represented by the string or element str. If str cannot be interpreted as a numerical value, a runtime error may occur, see option suppress error messages of val function. The Val function is discussed in full detail in Section 5.2.2 of the Language Reference.