-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsqrt.json
75 lines (75 loc) · 1.85 KB
/
sqrt.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"id": "sqrt",
"summary": "Square root",
"description": "Computes the square root of a real number `x`, which is equal to calculating `x` to the power of *0.5*.\n\nA square root of x is a number a such that *`a² = x`*. Therefore, the square root is the inverse function of a to the power of 2, but only for *a >= 0*.\n\nThe no-data value `null` is passed through and therefore gets propagated.",
"categories": [
"math",
"math > exponential & logarithmic"
],
"parameters": [
{
"name": "x",
"description": "A number.",
"schema": {
"type": [
"number",
"null"
]
}
}
],
"returns": {
"description": "The computed square root.",
"schema": {
"type": [
"number",
"null"
]
}
},
"examples": [
{
"arguments": {
"x": 0
},
"returns": 0
},
{
"arguments": {
"x": 1
},
"returns": 1
},
{
"arguments": {
"x": 9
},
"returns": 3
},
{
"arguments": {
"x": null
},
"returns": null
}
],
"links": [
{
"rel": "about",
"href": "http://mathworld.wolfram.com/SquareRoot.html",
"title": "Square root explained by Wolfram MathWorld"
}
],
"process_graph": {
"power": {
"process_id": "power",
"arguments": {
"base": {
"from_parameter": "x"
},
"p": 0.5
},
"result": true
}
}
}