输入与输出(cin、cout)
cin >> a >> b 终端中依次输入对a和b的赋值
<cmath>开根号:sqrt
海伦公式求三角形面积
<cmath>三角函数的计算:
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
int main()
{
float y = pow(sin(3.14159/ 4) , 2)+ sin(3.14159/ 4) * cos(3.14159/ 4) - pow(cos(3.14159/4) , 2);
cout << fixed << setprecision(5) << y << endl;
return 0;
}
线性代数-矩阵运算库
http://eigen.tuxfamily.org/index.php?title=Main_Page
C++第三方库的安装
编写于:2023/1/18 17:03:49
发布 IP 属地:
版权声明
输入与输出(cin、cout)
cin >> a >> b 终端中依次输入对a和b的赋值
<cmath>开根号:sqrt
海伦公式求三角形面积
<cmath>三角函数的计算:
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
int main()
{
float y = pow(sin(3.14159/ 4) , 2)+ sin(3.14159/ 4) * cos(3.14159/ 4) - pow(cos(3.14159/4) , 2);
cout << fixed << setprecision(5) << y << endl;
return 0;
}
线性代数-矩阵运算库
http://eigen.tuxfamily.org/index.php?title=Main_Page
C++第三方库的安装
编写于:2023/1/18 17:03:49
发布 IP 属地:
版权声明
本站内容均来自网络转载或网友提供,如有侵权请及时联系我们删除!本站不承担任何争议和法律责任!
每一个童年的梦想都值得用青春去捍卫!