You are on page 1of 1

Create Commands

CommandName Example Description

math math(at(1,2),'a+b') creates a math expression component

note(at(0,2),'This is my text with ##a+b## math


note creates a text + math note component
support')
graph graph(at(1,2),size(6,6)) creates a math expression component

at at(2,3) places a component at a position

size size(6,5) sets the width and height of a component

creates a step marker against a math


step step(2,'A')
expression

dm dm(-4,6) sets the domain (x axis) of the graph


component

rg rg(-5,5) sets the range (y axis) of the graph


component

join join('a+b','b+c') concatenates given list of string without


applying any math operations

Animate Commands

CommandName Example Description

offset offset(6,5) sets the x offset and y offset posotion

from from(6,5) sets the x offset and y offset posotion

to to(6,5) sets the x offset and y offset posotion

write write(p) write the math expression

show show(p) shows a component

shows the steplabel of a math text


showstep showstep(p)
component

hide hide(p) hides a component

play play(p) play a plot, shape

writes only the given selections in the


writeonly writeonly(p,'sel-1','sel-2')
given order (hides ohers)

shows only the given selections in the


showonly showonly(p,'sel-1','sel-2')
given order (hides ohers)

writes the expression given selections in


writesel writesel(p,'sel-1','sel-2') the given order, doesnt hide other parts
of the expression

showsel showsel(p,'sel-1','sel-2') Shows parts of expression specified by


the selections

hidesel hidesel(p,'sel-1','sel-2') Hides parts of expression specified by the


selections

writewithout writewithout(p,'sel-1','sel-2') writes the expression excluding the


selections

showwithout showwithout(p,'sel-1','sel-2') shows the expression excluding the


selections

move expressions from multiple source


arrange arrange(from(2,3),to(10,6),'2x') points to multiple target points

Get different expressions from different


assemble assemble(from(2,3,10,3),to(3,6),'2x','3y','2x+3y') points and finally show a different
expression in the target point

move move(p,5,9) moves a component to a new position

delay delay(2.5) delays the sequence by certain seconds

trace trace(1,2,3,4,2,6) draws a polyline

pen pen(1,2,3,4,2,6) Moves the pen along the coordinates

strike strike(2,3,1,2) strike out a rectangular portion

tip tip(3,4,'sqrt(a)') tip at x, y

pop pop(3,4,3,3,'sqrt(a)') pop at x, y

Runs multiple animatable commands


sq sq(write(h),show(g)) sequentially

pl pl(message(at(2,3),'My Message'), write(b)) Runs multiple animatable commands in


parallel

clear clear(accountNode,someVarname) Removes marks,message and arrows

color color('red') defines pen color

Defines simple,linear or radial gradient


bg bg('sky') background

arrow arrow(5,5,7,8,30) Draws a arrow

arrow2 arrow2(5,5,7,8,30) Draws a anticlock wise arrow

mark mark(2,3,1,2) Creates a rectangular annotation

mark2 mark2(2,3,1,2) creates a circular annotation

creates a reactangular annotation without


mark3 mark3(2,3,1,2) pen

message message('hello world ##a/2##') Displays a text message

Create,Animate Commands

CommandName Example Description

plot plot(mygraph,'sin(x)') Draws a plot

circle circle(g,4,4,2) Draws a circle

ellipse ellipse(g,4,4,2,3) Draws a ellipse

line line(g,4,4,6,8) Draws a line

arc arc(g,2,2,3,4,1,2) Draws a arc

vector vector(g,1,2,3,3) Draws a vector

label label(g,2,3,'a+b') Draws a label

point point(g,2,3) Draws a point

poly poly(g,2,3,4,4,3,3) Draws a polygon

curve curve(g,1,2,3,2,4,5,2,-4,'basis') Draws a curve that passes through given


set of points

num num('1/a+1/b') Returns the numerator of the expression

Returns the denominator of the


denom denom('1/(x-1)/(x-2)') expression

transpose transpose('[[a,b],[c,d]]') transpose an matrix expression

dot dot('[[a,b],[c,d]]','[x,y]') performs a dot product on vector, matrix

mget mget(matrixstr,'[2]') extracts either row, column or a single


element from a matrix

gcd gcd('x^2+2*x+1','x+1') find the gcd of set of exxpressions

lcm lcm('x^2+2*x+1','x+1') finds the lcm of set of exxpressions

replace replace(expstr,'b','(a+1)') direct string replace of math expression

sub sub('(a+b)^2','a','4') substitutes a given expression with


another one

font font('big') sets ths font size

space space(4) Generates empty spaces

ubrace ubrace(4) Generates under brace

obrace obrace(4) Generates over brace

variable a=select(A,2,3,6,1) Refers a variable

quotedstring a=select(A,2,3,6,1) Refers a variable

number a=select(A,2,3,6,1) Refers to a number

strinternal a=select(A,2,3,6,1) Refers a variable

You might also like