Rework npf.npv(rate, values) to support broadcasting over multiple rates and cashflow series.
Rework npf.npv(rate, values) to support broadcasting over multiple rates and cashflow series.: a task in UltraTerminal (Harbor dataset). Preserved behavior: npv(scalar rate, 1d cashflow) continues to return a scalar with the same formula: sum(values t / (1 + rate) t for t in range(T)) .
The task
**Preserved behavior:** `npv(scalar_rate, 1d_cashflow)` continues to return a scalar with the same formula: `sum(values[t] / (1 + rate)**t for t in range(T))`.
Part of harness-hub/UltraTerminal.