Class: MPVMatrixArithmetic

Source Location: /viewers/mpvmatrixarithmetic.php

Class Overview [line 40]


Arithmetic viewer class for MaximaPHP.

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Arithmetic viewer class for MaximaPHP.

[ Top ]


Class Variables

$examples = array
   (
      array( "matrix( [a1, b1], [c1, d1] )", "plus", "matrix( [a2, b2], [c2, d2] )" ),array("matrix( [a1, b1], [c1, d1] )","minus","matrix( [a2, b2], [c2, d2] )"),array("matrix( [a1, b1], [c1, d1] )","dot","matrix( [a2, b2], [c2, d2] )"),array("matrix( [a1, b1], [c1, d1] )","divide","matrix( [a2, b2], [c2, d2] )"),array("matrix( [a, b], [c, d] )","power","p"),array("q","power","matrix( [a, b], [c, d] )"),array("matrix( [a, b], [c, d] )","log","p"),array("q","log","matrix( [a, b], [c, d] )"),array("matrix( [1, 2], [3, 4] )","plus","matrix( [4, 3], [2, 1] )"),array("matrix( [1, 2], [3, 4] )","minus","matrix( [4, 3], [2, 1] )"),array("matrix( [1, 2], [3, 4] )","dot","matrix( [4, 3], [2, 1] )"),array("matrix( [1, 2], [3, 4] )","divide","matrix( [4, 3], [2, 1] )"),array("matrix( [1, 2], [3, 4] )","power","2"),array("matrix( [1, 2], [3, 4] )","power","1/2"),array("2","power","matrix( [1, 2], [3, 4] )"),array("matrix( [1, 2], [3, 4] )","log","2"),array("matrix( [1, 2], [3, 4] )","log","1/2"),array("2","log","matrix( [1, 2], [3, 4] )"))

[line 45]

Examples for expression

Type: mixed

Overrides:

[ Top ]


Class Methods

formatOutput

string formatOutput( string $result, boolean $simplify, boolean $numeric)

[line 91]

Format output from MaximaPHP

Parameters:

  • string $result - output from MaximaPHP
  • boolean $simplify - whether to simplify output or not
  • boolean $numeric - whether to apply numeric or not

[ Top ]

fromMatrix

string fromMatrix( string $matrix)

[line 128]

Format Maxima matrix to user input

Parameters:

  • string $matrix - matrix from Maxima

[ Top ]

getExamples

string getExamples( integer $count)

[line 72]

Get examples

Parameters:

  • integer $count - number of examples to get

[ Top ]

isInteger

void isInteger( $x)

[line 146]

Check if a variable is integer

Parameters:

  • $x -

[ Top ]

show

void show( $qstring)

[line 154]

Show the viewer

Parameters:

  • $qstring -

[ Top ]

toMatrix

string toMatrix( string $input)

[line 107]

Format user input to Maxima matrix

Parameters:

  • string $input - unser input from textarea

[ Top ]


Class Constants


Documentation generated on Mon, 23 Apr 2007 13:00:30 +0900 by phpDocumentor 1.3.1