lu_factor SciMax Toolbox macroexpand

SciMax Toolbox >> m1pbranch

m1pbranch

Option variable

m1pbranch

Description

Default value: false

m1pbranch is the principal branch for -1 to a power. Quantities such as (-1)^(1/3) (that is, an "odd" rational exponent) and (-1)^(1/4) (that is, an "even" rational exponent) are handled as follows:

domain:real
(-1)^(1/3):      -1
(-1)^(1/4):   (-1)^(1/4)
domain:complex
m1pbranch:false          m1pbranch:true
(-1)^(1/3)               1/2+%i*sqrt(3)/2
(-1)^(1/4)              sqrt(2)/2+%i*sqrt(2)/2
lu_factor SciMax Toolbox macroexpand