Struggling to create a function that involves math skills, I could really use some assistance. The task is to design a function that takes data points x
and generates an array of size x
with exponentially increasing values from 0 to 100. It would be ideal if this function could also accommodate a lambda value to alter the curve.
function exponentialCurve(x, max=100, lambda=4) {
// returns an array of size x where each entry represents a point on an exponential curve between 0 and max
}
This function will be used for implementing exponential decay in audio PCM data. Any guidance or help you can offer would be greatly appreciated. Thank you for your time.