Create sine lookup table in C++

后端 未结 6 1340
庸人自扰
庸人自扰 2020-12-13 15:27

How can I rewrite the following pseudocode in C++?

real array sine_table[-1000..1000]
    for x from -1000 to 1000
        sine_table[x] := sine(pi * x / 100         


        
6条回答
提交回复
热议问题