Scientific Calculator Plus : Language manual
All the functions except the built-in ones in Scientific Calculator Plus are developed by a language called MFP. MFP means Mathematical language For Parallel computing. Parallel computing is a built-in feature of this scripting language. Besides parallel computing and normal mathematical expressions and operators, this language also supports object oriented programming , binary number (with 0b as initial, e.g. 0b0011100), octal number (with 0 as initial, e.g. 0371.242), hexadecimal number (with 0x as initial, e.g. 0xAF46BC.0DD3E), complex number, array (matrix), string, function, citingspace, variable, condition statements, loop statements and help comments. This language is case-insensative.
MFP programming language has the following statements:
while, loop, do, until, for, next
class, public, private, self, super, this, endclass
Each statement in MFP should occupy at least one line. If a statement is too long, it can be divided into several lines, and at the end of each line except the last line should be the characters " _". For example, assume there is a function with 10 parameters, the declaration of this function is very long if the function declaration statement is put in a single line:
function abcde(para1, para2, para3, para4, para5, para6, para7, para8, para9, para10)
. To make the program reader-friendly, the declaration can be devided into several lines like:
function abcde(para1, para2, para3, _
para4, para5, para6, _
para7, para8, para9, para10)
. And we can still add comment at the end of each line, for the above example, comments can be added like:
function abcde(para1, para2, para3, _// line 1 has 3 parameters.
para4, para5, para6, _ // line 2 has 3 parameters too.
para7, para8, para9, para10) // line three has 4 parameters.
. And each line can have at most one statement. Not like C/C++, MFP doesn't have any statement divisor, e.g. ";".