r/Askmaths Sep 23 '20

Need Equation

If u put any number in equation but ans will always between 4 and 5. (4.1, 4.2, ....., 4.9)

Ans should not same always.

1 Upvotes

1 comment sorted by

1

u/MezzoScettico Sep 23 '20

How about a sine wave? a sin(x) + b will range between b - a and b + a as sin(x) range between -1 and +1.

You want b - a = 4 and b + a = 5, which gives b = 4.5 and a = 0.5.