📄 fsample.cpp
字号:
/*
* Example program
*
* Requires: floating.cpp big.cpp
*
* Copyright (c) 2003 Shamus Software Ltd.
*/
#include <iostream>
#include "floating.h"
using namespace std;
Miracl precision(18,0); // 18=2^4+2
int main()
{ /* Brents example program */
Float x,y,z;
setprecision(4); // 16=2^4
cout << fpi() << endl;
x=exp(fpi()*sqrt((Float)163/9));
cout << x << endl;
cout << pow(x,3) << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -