Skip to content

Commit e3f9e39

Browse files
authored
Update 705-math-absmax.markdown
1 parent 3f62f81 commit e3f9e39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

_build/reference/705-math-absmax.markdown

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,17 @@
44
55
Returns the absolute max value of x.
66

7+
```
8+
' absmax of three values
9+
print absmax(-3,-1,2)
710
11+
' absmax of three variables
12+
a = -3
13+
b = -1
14+
c = 2
15+
print absmax(a,b,c)
16+
17+
' absmax of an array
18+
a = [-3,-1,2]
19+
print absmax(a)
20+
```

0 commit comments

Comments
 (0)