I want to put in this function in my code f(x) = 5 * 1.1^x for a variable to grow exponentially

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Banana

So to clarify this is what I want the function to do

f(x) = 5 * 1.1^x

and this is what I have right now:

coincount = coincount * pow(1.1,x)

:bust_in_silhouette: Reply From: aidave

The actual code for function f(x) would be:

func coinpow(x):
    return 5 * pow(1.1, x)

A good awnser. Here is the documentation on the pow function.

godot_dev_ | 2023-04-22 14:25