Skip to content

aiserg/syn-lex-analys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#The calculator of matrix algebraic expressions This work includes lexical and syntax analys. The program works with matrices 2x2, rowvectors and colvectors.

##Initialization

ROWVECTOR NAME(value1, value2)
COLVECTOR NAME(value1, value2)
MATRIX NAME((value1.1, value1.2)(value2.1, value2.2))

##Example

MATRIX A((1,2)(3,4))
ROWVECTOR R(7,8)
COLVECTOR С(3,6)
A=(R^+C)*C-A@
PRINT(A)

A@ is inverse matrix. R^ is vector transpose. Open console to see lex analizer (and little othen information)

##If you've forgotten

MATRIX * MATRIX = MATRIX
ROWVECTOR * COLVECTOR = NUMBER
COLVECTOR * ROWVECTOR = MATRIX
MATRIX +(-) ROWVECTOR or COLVECTOR or NUMBER = ERROR!

About

The calculator of matrix algebraic expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published