Systemicalpha

Power

systemic:core-powMathfunction1 cr

Inputs

NameTypeDescription
Second ValuefloatarrayThe power to raise the base to.
First ValuefloatarrayThe base value to raise to a power.

Outputs

NameTypeDescription
PowfloatarrayThe element-wise power result (Base ^ Exponent).

Resulti=AiBi\text{Result}_i = A_i^{B_i}

Raises each element of the first input to the power of the corresponding element in the second. Essential for compound growth, volatility calculations, and non-linear scaling.

Base (A)Exponent (B)Result
238
40.52
10-10.1
501

Missing Data

If either input is missing (null) at a position — a data gap or a closed-market day — the result at that position is null. The module never invents a value for missing data: a gap in your inputs stays a gap in the output.

BaseExponentResult
2nullnull
null3null
nullnullnull

In live execution the module returns exactly one datapoint — the newest position — which is null when it cannot be determined.


Special Cases

⚠️ Important: Separate from missing data, a result can be mathematically undefined for real inputs:

ScenarioResultNotes
Negative base + fractional exponentnullUndefined in real numbers (would be complex)
0 raised to negative powerinfDivision by zero
Very large exponentinfOverflow

Example: (−4)0.5(-4)^{0.5} → null (would be 2i2i in complex math)

Infinite results pass through unchanged — they are values, not gaps.


Common Exponents

ExponentOperationUse Case
2SquareVariance from std dev
0.5Square rootStd dev from variance
-1ReciprocalInverse weighting
0Any base → 1Reset to constant

Input Alignment

Systemic automatically aligns inputs before calculation:

ScenarioWhat Happens
Different lengthsShorter series padded by repeating last value
Different frequenciesLower-frequency upsampled to match higher
One constantConstant expanded to match series length

Practical Example: Compound Growth

Calculate future value with compound interest:

Future Value=(1+r)n\text{Future Value} = (1 + r)^n

Annual RateYearsGrowth Factor
5%101.0510=1.6291.05^{10} = 1.629
7%201.0720=3.8701.07^{20} = 3.870
10%301.1030=17.4491.10^{30} = 17.449

Connect a growth factor series (1 + return) to the base and time periods to the exponent for dynamic compounding calculations.


  • SQRT — Square root (equivalent to exponent 0.5)
  • MUL — Repeated multiplication
  • DIV — Reciprocal (equivalent to exponent -1)

Interpretation Tips

  • Exponent > 1: Spreads out values, makes large larger and small smaller
  • 0 < Exponent < 1: Compresses spread, brings extremes closer to center
  • Exponent < 0: Inverts the scale (reciprocal-like)
  • Exponent = 0: Everything becomes 1

Advantages

  • Non-linear transformations — Essential for many financial calculations
  • Flexible — Squares, roots, reciprocals all in one module
  • Element-wise — Works naturally with time series

Disadvantages

  • Undefined cases — Negative bases with fractional exponents produce null
  • Overflow risk — Large exponents can produce infinity
  • Interpretation — Results may lose intuitive meaning at extreme exponents

Further Reading

© 2026 WanoLabs. All rights reservedAlpha build v0.1.5