February 2019
Intermediate to advanced
446 pages
10h 55m
English
In the following table, all the URLs start with http://localhost:8080:
|
URL |
JSON output |
|
/calculation/sqrt/12344.234 |
{
"function": "sqrt",
"input": [
"12344.234"
],
"output": [
"111.1046083652699"
]
} |
|
The /calculation/sqrt/-9344.34 of the Math.sqrt function's special scenario: If the argument is NaN or less than zero, then the result is NaN. |
{
"function": "sqrt",
"input": [
"-9344.34"
],
"output": [
"NaN"
]
} |
|
/calculation/power?base=2.09&exponent=4.5 |
{
"function": "power",
"input": [
"2.09",
"4.5"
],
"output": [
"27.58406626826615"
]
} |
|
/calculation/power?base=-92.9&exponent=-4 |
{
"function": "power",
"input": [
"-92.9",
"-4"
],
"output": [
"1.3425706351762353E-8"
]
} |
Read now
Unlock full access