muladdpow: Combine multiply, add and raise to the power

Description Usage Arguments Value Examples

View source: R/muladdpow.R

Description

Function that multiplies two numbers together, adds a third and finally raises to a fourth power all in one function

Usage

1
muladdpow(value, m, a, p)

Arguments

value

starting value to transform

m

number to multiply by

a

number to add on

p

power to raise total by

Value

final calculated value

Examples

1
muladdpow(1, 2, 3, 4) == (1 * 2 + 3) ^ 4

IBAHCM/practicalA5 documentation built on Dec. 17, 2021, 11:25 p.m.