L = (∛5e)/4

I am not too good at math so i am not sure what that square root 3 thing is, but i know that it can’t be typed in as is, is there a function of math for this? if so how would the end result look like?

```
local e = somevalue
local L = ((5 * e) ^ 1/3)/4
```

If its cube root 5e, then the above code will work, if its (cube root 5) * e, then the code provided by Pokemoncraft will work.

~~Please move this topic to #help-and-feedback:scripting-support since this isn’t the right category.~~

`local L = ((5 ^ 1 / 3) * e) / 4`

You’re right must have misclicked lol, will try that.

```
local e = 2.71828
local L = 5^(1/3) * e / 4
```

make sure your exponent is in parentheses!! otherwise you’ll end up writing (5^1)/3

1 Like

~~You forgot a bracket, else 5^1/3 won’t be divided by 4.~~

Misunderstood.

that code outputs the same result, multiplication with division is done left to right, no brackets needed

more about lua’s order of operations: Programming in Lua : 3.5

1 Like