⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fsample.cpp

📁 miracl-大数运算库,大家使用有什么问题请多多提意见
💻 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 + -