premium banner
Makes horses actually useful by turning them into calculators.

Description

horse named calculator

How to use the mod:
- Approach a horse.
- Say "Horse!" in chat to get its attention.
- While you have the horse's attention, ask it a math problem. Examples:
    - Calculate the sum of 5 and 3!
    - Calculate the product of 4 and 7.3!
    - Calculate 2 to the power of 10!
    - Calculate the cube root of 81! (👀)
- The horse will stomp for a bit and then give you your result

Your message must have proper capitalization and include an exclamation point at the end.

Currently supported operations:
  Basic arithmetic:
    - sum (+)
    - product (*)
    - difference (-)
    - quotient (/)
    - power (a to the power of b)
  Roots:
    - square root (2nd root)
    - cube root (3rd root)
    - nth root (4th, 5th, etc.)
  Trigonometry:
    - sine, cosine, tangent
    - arcsine / inverse sine
    - arccosine / inverse cosine
    - arctangent / inverse tangent
    - ! You can specify deg or rad after the number (ex: "Calculate the inverse cosine of 0.5 rad!"), but if you do not, it will default to degrees.
    - !! Just saying "sin", "cos", "tan", "asin", "acos", and "atan" instead of their fully spelled-out counterparts will not work.

If a horse can't produce a valid response (i.e. you inputted an incorrect number of arguments, you attempted to asin/acos a number greater than 1 or less than -1, you requested an invalid operation etc.), it will explode