Solved To the cube and roots

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lego_freak1999

Well-Known Member
Jan 26, 2017
657
46
28
HTTP-410
Skript Version: Skript 2.2 (dev25)
Skript Author: Njol, Mirreski, bensku, nfell2008, joeuguce99, RealGatt, RoyCurtis, tim740 and Tuke-Nuke
Minecraft Version: 1.11.2
---

Help:

I want to do math with square's and want to calculate the cube and even further.

also for roots but are there sytaxes for i couldend find some?


Full Code:

-

Errors on Reload:

-

Console Errors: (if applicable)

-

Addons using:
skDragon, Reqn, SkQuery, Bisphere, SkriptJSON, WolvSK, SkStuff, MundoSK, skUtilities, skRayFall, Skellett, Umbaska, SharpSK and TuSKe

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? none
 
Yes! You can (as far as I know) you can Square Root. Assuming there is square rooting, there is probably exponents as well.

You can find all of the syntax for complicated math by using the addon skQuery (You already have this)
9zbac.png

Found this on the skUnity Documentation Website if you want to see if there are exponents, be my guest.

Hopefully this helped :emoji_slight_smile:
 
  • Like
Reactions: Lego_freak1999
Yes! You can (as far as I know) you can Square Root. Assuming there is square rooting, there is probably exponents as well.

You can find all of the syntax for complicated math by using the addon skQuery (You already have this)
9zbac.png

Found this on the skUnity Documentation Website if you want to see if there are exponents, be my guest.

Hopefully this helped :emoji_slight_smile:

I already tryed iT And iT i coulded find THE exponenents And THE square And cubed do these even exist
 
This can be achieved in Skript without any addons. Found in the documentation.
code_language.skript:
{_num}^2     # square of a number
{_num}^3     # cube of a number
{_num}^(1/2) # square root of a number
{_num}^(1/3) # cube root of a number
Remember, roots can be expressed as fractional exponents.
 
  • Like
Reactions: Lego_freak1999
Status
Not open for further replies.