mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 09:34:05 -08:00
a8ad569db8
Signed-off-by: Levi Harrison <git@leviharrison.dev>
72 lines
1.3 KiB
Plaintext
72 lines
1.3 KiB
Plaintext
# Testing sin() cos() tan() asin() acos() atan() rad() deg() pi().
|
|
|
|
load 5m
|
|
trig{l="x"} 10
|
|
trig{l="y"} 20
|
|
trig{l="NaN"} NaN
|
|
|
|
eval instant at 5m sin(trig)
|
|
{l="x"} -0.5440211108893699
|
|
{l="y"} 0.9129452507276277
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m cos(trig)
|
|
{l="x"} -0.8390715290764524
|
|
{l="y"} 0.40808206181339196
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m tan(trig)
|
|
{l="x"} 0.6483608274590867
|
|
{l="y"} 2.2371609442247427
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m asin(trig - 10.1)
|
|
{l="x"} -0.10016742116155944
|
|
{l="y"} NaN
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m acos(trig - 10.1)
|
|
{l="x"} 1.670963747956456
|
|
{l="y"} NaN
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m atan(trig)
|
|
{l="x"} 1.4711276743037345
|
|
{l="y"} 1.5208379310729538
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m rad(trig)
|
|
{l="x"} 0.17453292519943295
|
|
{l="y"} 0.3490658503988659
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m rad(trig - 10)
|
|
{l="x"} 0
|
|
{l="y"} 0.17453292519943295
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m rad(trig - 20)
|
|
{l="x"} -0.17453292519943295
|
|
{l="y"} 0
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m deg(trig)
|
|
{l="x"} 572.9577951308232
|
|
{l="y"} 1145.9155902616465
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m deg(trig - 10)
|
|
{l="x"} 0
|
|
{l="y"} 572.9577951308232
|
|
{l="NaN"} NaN
|
|
|
|
eval instant at 5m deg(trig - 20)
|
|
{l="x"} -572.9577951308232
|
|
{l="y"} 0
|
|
{l="NaN"} NaN
|
|
|
|
clear
|
|
|
|
eval instant at 0s pi()
|
|
{} 3.141592653589793
|