MathObjects reference table

From WeBWorK_wiki
Revision as of 09:01, 6 January 2014 by Gage (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Context("Point");

$p = Point(-4,3,5);
$p = Compute("(-4,3,5)");	 	

Context("Vector");

$v = Vector(-4,3,5);
$v = Compute("<-4,3,5>");
$v = ColumnVector(-4,3,5)	 	
								norm($v)
								unit($v)
								$v . $u
								$v x $u
								$v->isParallel($u)

Context("Matrix");

$A = Matrix([1,2],[3,4]);
$A = Compute("[[1,2],[3,4]]");	 	
								$A->transpose
								$A->row(i)
								$A->column(j)
								$A->element(i,j)
								Value::Matrix->I(n)

Context("Complex");

$z = Complex(2,-3);
$z = 2 - 3*i;
$z = Compute("2-3i");	 	
								Re($z), Im($z)
								mod($z), arg($z)
								conj($z), ~$z

Context("Numeric");

$x = Real(4.5);
$x = Compute("4.5")
$y = Infinity;
$y = -(Infinity);
$y = Compute("-infinity");	

Context("Interval");

$S = Interval("(-3,5]");
$S = Interval("(",-3,5,"]");
$S = Compute("(-infinity,3)")
$S = Union("[-3,4] U [5,10)");
$S = Set(3,-5,10.4);
$S = Compute("{3,-5,10.4}")
$S = Interval("[1,8]") - Set(3,5);
$S = Compute("R - {0}");
$S = Compute("{}")	 	
								$S->contains($T)
								$S->isSubsetOf($T)
								$S->intersects($T)
								$S->intersect($T)
								$S->reduce
								$S->isReduced
								$S->isEmpty

$f = Formula("x^2+3");
$v = Formula("<1,x>")	 	
$L = List(1,3,5);
$L = List("(1,3,5)");
$L = List(Point(1,2,3),Point(3,4,5));
$L = List("(1,3,5),<3,4,5>");
$L = List("NONE");
$L = List();	 	
	 	
Context()->strings->add(
   Yes=>{}, No=>{},
   Y=>{alias=>'Yes'},
   N=>{alias=>'No'},
);
$S = String("DNE");
$S = Compute("No");