expt

 

 

Overview

The expt function will compute the exponential of the two arguments. The first argument {base} is raised to the value of the second argument {n}. Expressed as a formula the expt function performs the following: basen

Usage

The expt function raises the {base} to the nth power {n}.

Complex

The expt function is used to raise a number, base, to the power, exponent, where one or both arguments are complex. Do not use if immediate types, such as real numbers, would suffice.

 

Syntax


Expression:

(expt base n)


Arguments Name Type Description
Argument:baseNumber The number to be raised to the nth power
Argument:nInteger The power n.

Returns:

Computes and returns basen.




Expression:

(expt base n)


Arguments Name Type Description
Argument:baseNumber The number to be raised to the nth power
Argument:nInteger The power n.

Returns:

A complex number holding base to the exponent power.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Number

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ * -- -=
- abs acos add1
addMethod addi argument arithmetic
asin atan avg binaryInsert
boolean character compareEQ compareGE
compareGT compareLE compareLT compareNE
compare cons cos cosh
count date day days360
decode deg display divi
exp expt fact floor
fraction getTickCount hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imod
imul inside integer isAtom
isBitVector isBoolean isByteVector isChar
isCharacter isComplex isDate isDictionary
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isInexact
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNegative
isNull isNumberMatrix isNumberVector isNumber
isObjectVector isObject isOdd isPair
isPcodeVector isPositive isString isStructure
isSymbol isText isType isVector
isZero isub julian kurtosis
length list log10 log2
log logbase macroReplace makeQuotedList
max median member min
minute mod modi money
month muli nadd ncompareEQ
ncompareGE ncompareGT ncompareLE ncompareLT
ncompareNE ndiv new nmod
nmul now nsub number
objectToMatrix objectToNumMatrix objectToNumVector pair
parent parse pi product
rad random randomize range
ref remove round saveObject
saveRepository second setCar setCdr
setLastCdr setq sigmoid sign
sin sinh sizeof skew
sleep sqrt srandom stdev
stdevp string sub1 subi
submit sum sumsqr tan
tanh time type uniqueInsert
var varp vectorBinaryInnerProduct vectorBipolarInnerProduct
vectorCosineInnerProduct vectorCubeInnerProduct vectorExpInnerProduct vectorFill
vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct
vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct
vectorTanhInnerProduct writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE