Malical library

From Casio Universal Wiki
Revision as of 23:49, June 6, 2012 by Helder7 (talk | contribs)
Jump to: navigation, search

Here is the Malical library functions table. If you want more information about usage you can visit the Malical page.

Function name

Function parameters

Actions

sin

sin[n]

Sine Function

cos

cos[n]

Cosine Function

tan

tan[n]

Tangent

atn

atn[n]

Tangent function

int

int[a]

Rounding

abs

abs[n]

Absolute value of

rand

No parameters

Returns a 0 to 32 767 random integers. Narrow modulo operator, such as the rand% 5 return 0 to 4

val

val [str]

The string str into the value

tos

tos[n]

The value n into string

chr

chr[n]

Value (ASCII code) into a character

asc

asc[str

The first characters of the string str into ASCII code

mid

mid[str][n][l]

Starting from n interception length l string

len

len[str]

Returns the string length

type

type[obj]

Back to the expression value type (string)

eval

eval[str]

Str (string) to as Malical expression operator

locate

locate[x][y]

Specified string input / output location

print

print[obj]

Locate the specified location output value (numeric, string, etc.)

printrev

printrev[obj]

same print, anti-color output

(reverse color? )

printxy

printxy[x][y][obj][sel]

In x, y position of the output value, sel is true anti-color, false anti-color

printmini

printmini[x][y][obj][sel]

same printxy, the font smaller. sel is 0 coverage of the output, 1or model output, two anti-color output, anti-color + or the model output

printnum

 

Parameters are the same function without num, obj type only numeric output, the print output 1.5 1.500000 0 printnum not output behind only output 1.5

printnumxy

idem

 

printnummini

idem

 

gets

gets[x][y]

In the x, y position to obtain user input string and returns

getkey

<No parameters>

Get a keyboard press the enter key (return key code)

iskeydown

iskeydown[n]

Detected key code n represented by the key has been pressed

line

line[x1][y1][x2][y2]

Draw a straight line

box

box[left][top][right][bottom]

Draw a rectangle

circle

circle[x][y][r]

Draw a circle of radius r in the x, y position

allclr

<No parameters>

Clear the memory contents

areaclr

area[left][top][right][bottom]

Clear the memory specified within the rectangle

lineclr

lineclr[x1][y1][x2][y2]

Clear a straight line

arearev

arearev[left][top][right][bottom]

Specify the contents of the rectangle within the scope of the anti-color memory

setpoint

setpoint[x][y][sel]

Set the x, y location of the color, sel true black, fake white

getpoint

getpoint[x][y]

To obtain x, y location of the color, black returns 1, the white return 0

putdisp

<No parameters>

Refresh memory (such as real-time display in the loop drawing graphics update)

popupwin

popupwin[n]

Pop-up window of an n-line

savedisp

savedisp[n]

Save now screen the contents of n can be 0 to 9, that is, you can save up to three screens

rcldisp

rcldisp[n]

The contents of the screen to save the output n, n can only be 0 to 9

rclpict

rclpict[name]

A picture the contents of the memory output n the picture if the 9860 generated PICT files, rclpict ["P.g1m"], flash in the name of P (uppercase).. G1m picture

push

push[a][obj]

Add an element in the array a tail

delete

delete[a][index]

Delete an element in the array a subscript index position

clear

clear[a]

Clear the entire contents of the array a

sizeof

sizeof[a]

Returns the number of array elements

showap

showap[x][y][w][h][p]

In x, y position to draw the contents of the array of p, w is the width, h is the height of the array, 0 white, 1 black.

rtcreset

<No parameters>

Reset the RTC chip

setyear

setyear[thou][hun][ten][one]

Set the year. The four parameters in turn of the year one thousand, one hundred and ten, respectively. Setyear like this call [2][0][1][2]

setmonth

setmonth[ten][one]

Set the month. Parameter in turn is a month of 10-bit, bit. Called like this setmonth [1][2]

setdomonth

setdomonth[ten][one]

Set the date (day of month)

setdoweek

setdoweek[ten][one]

Set the week (day of week)

sethour

sethour[ten][one]

To set the hour

setminute

setminute[ten][one]

To set the minutes

setsecond

setsecond[ten][one]

To set the seconds

readyear

<No parameters>

Reads the Year

readmonth

<No parameters>

Reads the month

readdomonth

<No parameters>

Read date

readdoweek

<No parameters>

Read week

readhour

<No parameters>

Read hours

readminute

<No parameters>

Read the minutes

readsecond

<No parameters>

Read seconds

exit

<No parameters>

Exit the program

sleep

sleep[n]

Delay of n microseconds

cpuspeed

cpuspeed[n]      

N can only  is 0, 1, 2, 3, 4.

0: reset the calculator, and the remaining cpu speed multiplied by a few, that is four times the overclocking

waitkey

waitkey[n]

Wait until the user presses the button code n represents the key