de.dante.extex.interpreter.primitives.register.real
Class MathPow

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.primitives.register.real.AbstractMath
          extended byde.dante.extex.interpreter.primitives.register.real.MathPow
All Implemented Interfaces:
Code, CountConvertible, Localizable, RealConvertible, java.io.Serializable, Theable

public class MathPow
extends AbstractMath
implements Theable, RealConvertible, CountConvertible

Math. the value of the first argument raised to the power of the second argument.

Example

 \the\mathpow 0.234 0.34
 \real7=\mathpow 0.56 0.34
 \real8=\mathpow\real7\real8
 \count99=\mathpow 1.34 0.34
 

Version:
$Revision: 1.5 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode
serialVersionUID
 
Constructor Summary
MathPow(java.lang.String name)
          Creates a new object.
 
Method Summary
protected  Real calculate(Context context, TokenSource source)
          Calculate
 
Methods inherited from class de.dante.extex.interpreter.primitives.register.real.AbstractMath
convertCount, convertReal, execute, the
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.dante.extex.interpreter.type.Theable
the
 
Methods inherited from interface de.dante.extex.interpreter.type.real.RealConvertible
convertReal
 
Methods inherited from interface de.dante.extex.interpreter.type.count.CountConvertible
convertCount
 

Constructor Detail

MathPow

public MathPow(java.lang.String name)
        throws GeneralException
Creates a new object.

Parameters:
name - the name for debugging
Throws:
GeneralException - ...
Method Detail

calculate

protected Real calculate(Context context,
                         TokenSource source)
                  throws InterpreterException
Calculate

Specified by:
calculate in class AbstractMath
Parameters:
context - the context
source - the tokensource
Returns:
the real value
Throws:
InterpreterException - if a error occoured