Description
MathPro is a numerical computing environment and programming language for mobile phone. You can implement any numerical method using this program. MathPro is designed in order the user interact more efficiently. Is caracterised by:
- Programs can be viewed or edited using the present famous mobile text editor
- Writing programs more efficiently and solve any linear or non-linear equation
This Mathematical tool for mobile phone is a Must-have tool for students, professionals and scientists.
MathPro's interface
integrate standard mathematical notation, programming statements, and text in a single worksheet. Is very flexible, fast, and more professional like today's advanced mathematical softwares (e.g. MatLab, Mathematica,...). It runs on handheld mobile devices running java (MIDP 2.0, cldc 1.1).
Arithmetic Operators: + - * / ^
Relational Operators: < > <= >= = !=
Special Characters
Caracter |
Description |
[ ] |
Brackets are used with vectors and matrices. |
{ } |
Curly braces are used with Conditionally execute statements (if). |
( ) |
Parentheses are used to indicate precedence in arithmetic expressions in the usual way. They are used to enclose arguments of functions in the usual way. |
= |
Used in assignment of variables and functions.
Example: x=2, y=x+5, f(x)=x**2+x
Used together with (<) for strings assignment.
Example: str=<mathpro>
Used together with (:) to display the values of variables, functions, and strings.
Example: x:=2, y:=7, f(2):=6, str:=mathpro
|
; |
Semicolon. Used to separate statements in multistatement lines. You can have more than one statement on a single line by separating each statement with semicolons. |
, |
Comma used inside brackets . |
. |
Decimal point. 314/100, 3.14, and .314e1 are all the same. |
" |
Used for comments. |
: |
-Used with label identifier
example:
If (x=1){goto label}
x=x+1
label: -MathPro's write instruction.
example :
x=5;y=6
z=x+y
z:=11
z=2*z
z:=22 |
MathPro Statements
Statement |
Definition |
Syntax |
goto |
A goto statement causes your program to unconditionally transfer control to the statement associated with the label specified on the goto statement. |
goto label_identifier |
if |
Conditionally execute statements
MathPro evaluates the expression and, if the evaluation yields a logical true or nonzero result, executes one or more MathPro commands denoted here as statements. When you are nesting ifs, each if must be paired with a matching end.
|
if (expression) {statements}
or
if (expression){statements1} else {statements2}
|
repeat |
Repeat statements until the boolean expression become true. |
repeat statements until boolean_expression |
Arguments
1. expression
expression is a MathPro expression, usually consisting of variables or smaller expressions joined by relational operators (e.g., count < limit). MathPro evaluates compound expressions from left to right, adhering to operator precedence rules.
2. statements
statements is one or more MathPro statements to be executed only if the expression is true or nonzero. Examples
1. Example of (if) statement ( soloution of second order equation: ax2+bx+c=0) "solving the equation a*x^2+b*x+c=0
"input parameters
a=1; b=1; c=-2; nosol=<noroots>
"algorithm
delta=b*b-4*a*c
if (delta<0){goto noroots)}
if (a!=0){x1=(-b+sqrt(delta))/(2*a);x2=(-b-sqrt(delta))/(2*a)}
else {x1=-c/b;x2=-c/b}
"resulats
x1:=1
x2:=-2
goto exit
noroots:
nosol:=exit:
2. Example of repeat statement ( factorial of k)
“input value of k
k=4
“algorithm
n=1
m=1
repeat
m=m+1
n=m*n
until m>=k
"result is
n:=24
Built in Functions
Function |
Definition |
Syntax |
Description |
| sin |
Sine of an argument in radians |
y = sin(x) |
|
| asin |
Inverse sine (arcsine), result in radians |
y = asin(x) |
|
| sinh |
Hyperbolic sine of an argument in radians |
y = sinh(x) |
|
| cos |
Cos of an argument in radians |
y = cos(x) |
|
acos |
Inverse cos (arccos), result in radians |
y = acos(x) |
|
cosh |
Hyperbolic cos of an argument in radians |
y = cosh(x) |
|
tan |
Tan of an argument in radians |
y = tan(x) |
|
atan |
Inverse tan (arctan), result in radians |
y = atan(x) |
|
tanh
|
Hyperbolic tan of an argument in radians |
y = tanh(x) |
|
log |
Logarithm base 10 |
log(x) |
|
ln |
Logarithm base 2 |
ln(x) |
|
exp |
Exponential |
y = exp(x) |
|
abs |
Absolute value |
y = abs(x) |
|
sign |
Signum function |
y = sign(x) |
y = sign(x) returns sign
1 if the corresponding element of x is greater than zero
-1 if the corresponding element of x is less than zero |
sqrt |
Square root |
y = sqrt(x) |
|
ceil |
Round toward infinity |
y = ceil(x) |
|
floor |
Round towards minus infinity |
y = floor(x) |
|
Copyright © 2010-2012 Mobile-sciences Inc. All rights reserved |
|
Create an account
Why register with www.mobile-sciences.com?
As a registered user on www.mobile-sciences.com, you will be alerted of any updates or new products.
Registered users also have the ability to get a 30% discount of all mobile-sciences’s products after the first purchase of any of our products.
Simply complete the online registration form, ensuring you complete all the mandatory fields and choose a username and password that you will remembre easily. Should your choice of username be already taken, we suggest you add some numeric element to make it unique.
By registering on www.mobile-sciences.com you are agreeing to the terms and conditions of using the website. Unused accounts or registrations with incorrect data entered may be removed from our system.
|
|
|