get_power returns the battery power given capacity and charge rate.

get_power(capacity, c_rate)

Arguments

capacity

numeric scalar, the battery capacity.

c_rate

numeric scalar, the battery charge rate.

Value

Returns a numeric scalar, the battery power.

Examples

get_power(1, 2)
#> [1] 2
if (FALSE) { get_power("one", "two") }