mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibJS: Add almost all Math functions
This commit is contained in:
parent
a35693915e
commit
7c9c3a10d3
3 changed files with 167 additions and 5 deletions
|
@ -69,6 +69,7 @@ namespace JS {
|
|||
P(asin) \
|
||||
P(asinh) \
|
||||
P(atan) \
|
||||
P(atan2) \
|
||||
P(atanh) \
|
||||
P(bind) \
|
||||
P(byteLength) \
|
||||
|
@ -85,6 +86,7 @@ namespace JS {
|
|||
P(construct) \
|
||||
P(constructor) \
|
||||
P(cos) \
|
||||
P(cosh) \
|
||||
P(count) \
|
||||
P(countReset) \
|
||||
P(debug) \
|
||||
|
@ -110,6 +112,7 @@ namespace JS {
|
|||
P(forEach) \
|
||||
P(from) \
|
||||
P(fromCharCode) \
|
||||
P(fround) \
|
||||
P(gc) \
|
||||
P(get) \
|
||||
P(getDate) \
|
||||
|
@ -137,7 +140,9 @@ namespace JS {
|
|||
P(groups) \
|
||||
P(has) \
|
||||
P(hasOwnProperty) \
|
||||
P(hypot) \
|
||||
P(ignoreCase) \
|
||||
P(imul) \
|
||||
P(includes) \
|
||||
P(index) \
|
||||
P(indexOf) \
|
||||
|
@ -160,6 +165,8 @@ namespace JS {
|
|||
P(length) \
|
||||
P(log) \
|
||||
P(log1p) \
|
||||
P(log2) \
|
||||
P(log10) \
|
||||
P(map) \
|
||||
P(max) \
|
||||
P(message) \
|
||||
|
@ -193,6 +200,7 @@ namespace JS {
|
|||
P(shift) \
|
||||
P(sign) \
|
||||
P(sin) \
|
||||
P(sinh) \
|
||||
P(slice) \
|
||||
P(some) \
|
||||
P(sort) \
|
||||
|
@ -205,6 +213,7 @@ namespace JS {
|
|||
P(substr) \
|
||||
P(substring) \
|
||||
P(tan) \
|
||||
P(tanh) \
|
||||
P(test) \
|
||||
P(toDateString) \
|
||||
P(toISOString) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue