将代数式写成C语言表达式
來源:互聯網 2009-11-24 21:33:54 評論
分類: 電腦/網絡 >> 程序設計 >> 其他編程語言
問題描述:
sin50度
arccos(x)
tg(arctg(5/6)-arctg(7/8))
x^2-e^22
还有根号派怎么表示啊?
參考答案:
#include
sin50度——sin(50/180*3.1415926)
arccos(x)——acos(x)
tg(arctg(5/6)-arctg(7/8))——tan(atan((double)5/6)-atan((double)7/8))
x^2-e^22——pow(x,2)-pow(e,22) //e的值我忘了,pow是C++的函数我忘了C语言中是否有
sqrt(3.1415926)
[b]分类:[/b] 电脑/网络 >> 程序设计 >> 其他编程语言[br][b]问题描述:[/b][br]sin50度
arccos(x)
tg(arctg(5/6)-arctg(7/8))
x^2-e^22
还有根号派怎么表示啊?[br][b]参考答案:[/b][br]#include
sin50度——sin(50/180*3.1415926)
arccos(x)——acos(x)
tg(arctg(5/6)-arctg(7/8))——tan(atan((double)5/6)-atan((double)7/8))
x^2-e^22——pow(x,2)-pow(e,22) //e的值我忘了,pow是C++的函数我忘了C语言中是否有
sqrt(3.1415926)