Skuared - Math 'n algorithms 'n stuff

Addon Skuared - Math 'n algorithms 'n stuff 1.1-pre

  • 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 comminuty!

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

Heya. Time for a new update I guess.

This update adds stuff so complicated you probably won't know what it does, that's why I won't detail the descriptions :

[h2]Added : [/h2]
[h3]Effects : [/h3]
CRUCIAL : all of these effects will interrupt the script execution while running !
More details on how these effects behave below as well as on the wiki !

Note : the math expressions to be inputted into these effects can only have 'x' in them. No other letter works.

Summation :
Code:
(sum|sigma) %string% from %number% to %number%
(sum|sigma) %string% from %number% to infinity
Calculates a summation.
The first string is the expression to be summed.
The first number is the beginning value.
The second number or "infinity" is the end value.

Pi-notation product :
Code:
(product|pi) %string% from %number% to %number%
(product|pi) %string% from %number% to infinity
Calculates a product in Pi-notation
Same as in summation.

Limit :
Code:
limit %string% as x approaches %number% [from above]
limit %string% as x approaches [-]infinity
Calculates the limit of an expression approaching a certain value
First string is the expression, and second number (or (-)infinity) is the value the expression will be approaching.

Derivative (syntax subject to tweaks):
Code:
((calculate|compute) derivative of|derivate) %string% [at x=%number%]
d/dx(%string%) [where x=%number%]
Calculates the derivative of a function.
The string is the function/expression to find the derivative of.
The number, if specified, specifies a precise value of the function.

IMPORTANT : this effect will produce a string unless the value is included

Integral :
Code:
((calculate|compute) integral of|integrate) %string% [from %number% to %number%]
Calculates the integral of a given function.
The string is, as always, the function/expression to be computed.
If specified, the numbers create bounds, thus making Skuared compute a definite integral.

IMPORTANT : same as for the derivative, the effect will produce a string unless bounds are specified.

[h3]Expression (*read if you are going to use the above effects !*) :[/h3]
Last Skuared result:
Code:
[the] last skuared result
Returns the value produced by one of the above effects. This value may be a string or a number depending on what effect you used and how you used it.

[h3]Functions :[/h3]
This update provides new default functions, that can be used in [code single]evaluate expression[/code] or anywhere else !

gamma :
Code:
gamma(number: x)
The Gamma function. If you don't know what it is, then you shouldn't use it.

factorial :
Code:
factorial(integer: x)
Calculates the factorial of a given integer.



[h2]Documentation about WolframAlpha coming Soon™ ![/h2]
That's all folks !