Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 1 year ago

Language

C++

Compiler

gcc 12.3.0

Options
Warnings
Optimization
Boost 1.81.0
C++2b
no pedantic

Author

anonymous

over 1 year ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.81.0-gcc-12.3.0/include -std=c++2b
sin(0/4π) =  0.0000000000000000  cos(0/4π) =  1.0000000000000000
sin(1/4π) =  0.7071067811865476  cos(1/4π) =  0.7071067811865476
sin(2/4π) =  1.0000000000000000  cos(2/4π) =  0.0000000000000000
sin(3/4π) =  0.7071067811865476  cos(3/4π) = -0.7071067811865476
sin(4/4π) = -0.0000000000000000  cos(4/4π) = -1.0000000000000000
sin(5/4π) = -0.7071067811865476  cos(5/4π) = -0.7071067811865476
sin(6/4π) = -1.0000000000000000  cos(6/4π) =  0.0000000000000000
sin(7/4π) = -0.7071067811865476  cos(7/4π) =  0.7071067811865476
sin(8/4π) =  0.0000000000000000  cos(8/4π) =  1.0000000000000000
Exit Code:
0