输入与输出(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++第三方库的安装
输入与输出(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++第三方库的安装
每一个童年的梦想都值得用青春去捍卫!