get_power returns the battery power given capacity and charge
rate.
get_power(capacity, c_rate)
| capacity | numeric scalar, the battery capacity. |
|---|---|
| c_rate | numeric scalar, the battery charge rate. |
Returns a numeric scalar, the battery power.
get_power(1, 2)#> [1] 2if (FALSE) { get_power("one", "two") }