mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-25 16:15:19 +00:00
Compare commits
4 Commits
plugin-add
...
inv-trig-d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5902ba8c5c | ||
|
|
efdc4af31b | ||
|
|
d94edaa33f | ||
| 7c378b401a |
@@ -16,6 +16,5 @@ dependencies {
|
|||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define the main class for the application
|
|
||||||
mainClassName = 'org.nwapw.abacus.Abacus'
|
mainClassName = 'org.nwapw.abacus.Abacus'
|
||||||
|
|
||||||
|
|||||||
@@ -655,27 +655,40 @@ public class StandardPlugin extends Plugin {
|
|||||||
"the power that e has to be brought to to be equal to the number.\n\n" +
|
"the power that e has to be brought to to be equal to the number.\n\n" +
|
||||||
"Example: ln(2.718) -> 1", DocumentationType.FUNCTION));
|
"Example: ln(2.718) -> 1", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("sqrt", "Square Root", "Finds the square root " +
|
registerDocumentation(new Documentation("sqrt", "Square Root", "Finds the square root " +
|
||||||
"of the number.", "A square root a of a number is defined such that a times a is equal " +
|
"of the number.", "A square root a of a number is defined as the non-negative a such that a times a is equal " +
|
||||||
"to that number.\n\n" +
|
"to that number.\n\n" +
|
||||||
"Example: sqrt(4) -> 2", DocumentationType.FUNCTION));
|
"Example: sqrt(4) -> 2", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("sin", "Sine", "Computes the sine of the given angle, " +
|
registerDocumentation(new Documentation("sin", "Sine", "Computes the sine of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: sin(pi/6) -> 0.5", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("cos", "Cosine", "Computes the cosine of the given angle, " +
|
registerDocumentation(new Documentation("cos", "Cosine", "Computes the cosine of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: cos(pi/6) -> 0.866... (the exact result is sqrt(3)/2)", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("tan", "Tangent", "Computes the tangent of the given angle, " +
|
registerDocumentation(new Documentation("tan", "Tangent", "Computes the tangent of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: tan(pi/6) -> 0.577... (the exact result is 1/sqrt(3))", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("sec", "Secant", "Computes the secant of the given angle, " +
|
registerDocumentation(new Documentation("sec", "Secant", "Computes the secant of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: sec(pi/6) -> 1.154... (the exact result is 2/sqrt(3))", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("csc", "Cosecant", "Computes the cosecant of the given angle, " +
|
registerDocumentation(new Documentation("csc", "Cosecant", "Computes the cosecant of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: csc(pi/6) -> 2", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("cot", "Cotangent", "Computes the cotangent of the given angle, " +
|
registerDocumentation(new Documentation("cot", "Cotangent", "Computes the cotangent of the given angle, " +
|
||||||
"in radians.", "", DocumentationType.FUNCTION));
|
"in radians.", "Example: cot(pi/6) -> 1.732... (the exact result is sqrt(3))", DocumentationType.FUNCTION));
|
||||||
registerDocumentation(new Documentation("random_int", "Random Integer", "Generates a random integer [0, n].",
|
registerDocumentation(new Documentation("random_int", "Random Integer", "Generates a random integer [0, n].",
|
||||||
"Generates a pseudorandom number using the standard JVM random mechanism, keeping it less than or " +
|
"Generates a pseudorandom number using the standard JVM random mechanism, keeping it less than or " +
|
||||||
"equal to the given number.\n\n" +
|
"equal to the given number.\n\n" +
|
||||||
"Example: random_int(5) -> 4\n" +
|
"Example: random_int(5) -> 4\n" +
|
||||||
"random_int(5) -> 3\n" +
|
"random_int(5) -> 3\n" +
|
||||||
"random_int(5) -> 3\n", DocumentationType.FUNCTION));
|
"random_int(5) -> 3\n", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arcsin", "Arcsine", "Computes the arcsine of x. (The result is in radians.)",
|
||||||
|
"Example: arcsin(0.5) -> 0.523... (the exact result is pi/6)", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arccos", "Arccosine", "Computes the arccosine of x. (The result is in radians.)",
|
||||||
|
"Example: arccos(0.5) -> 1.047... (the exact result is pi/3)", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arctan", "Arctangent", "Computes the arctangent of x. (The result is in radians.)",
|
||||||
|
"Example: arctan(1) -> 0.785... (the exact result is pi/4)", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arcsec", "Arcsecant", "Computes the arcsecant of x. (The result is in radians.)",
|
||||||
|
"Example: arcsec(2) -> 1.047... (the exact result is pi/3)", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arccsc", "Arccosecant", "Computes the arcscosecant of x. (The result is in radians.)",
|
||||||
|
"Example: arccsc(2) -> 0.523... (the exact result is pi/6)", DocumentationType.FUNCTION));
|
||||||
|
registerDocumentation(new Documentation("arccot", "Arccotangent", "Computes the arccotangent of x. (The result is in radians," +
|
||||||
|
" in the range (0, pi).)",
|
||||||
|
"Example: arccot(0) -> 1.570... (the exact result is pi/2)", DocumentationType.FUNCTION));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user