コード例 #1
0
ファイル: differential.hpp プロジェクト: aliddell/b2
		mpfr FreshEval_mp(std::shared_ptr<Variable> const& diff_variable) const override
		{
			if(differential_variable_ == diff_variable)
			{
				return mpfr(1);
			}
			else
			{
				return mpfr(0);
			}
		}
コード例 #2
0
ファイル: class_test.cpp プロジェクト: bertiniteam/b2
	ClassTestInit()
	{
		bertini::DefaultPrecision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		xnum_mpfr.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		ynum_mpfr.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		znum_mpfr.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		anum_mpfr.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		bnum_mpfr.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);
		threshold_clearance_mp.precision(CLASS_TEST_MPFR_DEFAULT_DIGITS);

		xnum_mpfr = mpfr(xstr_real, xstr_imag);
		ynum_mpfr = mpfr(ystr_real, ystr_imag);
		znum_mpfr = mpfr(zstr_real, zstr_imag);
		anum_mpfr = mpfr(astr_real, astr_imag);
		bnum_mpfr = mpfr(bstr_real, bstr_imag);
		pnum_mpfr = mpfr(pstr_real, pstr_imag);

		threshold_clearance_mp = bertini::mpfr_float("1e-27");
	}
コード例 #3
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		void FreshEval_mp(mpfr& evaluation_value, std::shared_ptr<Variable> const& diff_variable) const override
		{
			evaluation_value = mpfr(boost::multiprecision::mpfr_float(true_value_real_),boost::multiprecision::mpfr_float(true_value_imag_));
		}
コード例 #4
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		mpfr FreshEval_mp(std::shared_ptr<Variable> const& diff_variable) const override
		{
			return mpfr(boost::multiprecision::mpfr_float(true_value_real_),boost::multiprecision::mpfr_float(true_value_imag_));
		}
コード例 #5
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		void FreshEval_mp(mpfr& evaluation_value, std::shared_ptr<Variable> const& diff_variable) const override
		{
			evaluation_value = mpfr(highest_precision_value_);
		}
コード例 #6
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		mpfr FreshEval_mp(std::shared_ptr<Variable> const& diff_variable) const override
		{
			return mpfr(highest_precision_value_);
		}
コード例 #7
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		void FreshEval_mp(mpfr& evaluation_value, std::shared_ptr<Variable> const& diff_variable) const override
		{
			evaluation_value = mpfr(true_value_,0);
		}
コード例 #8
0
ファイル: number.hpp プロジェクト: ch00226855/Test052015
		mpfr FreshEval_mp(std::shared_ptr<Variable> const& diff_variable) const override
		{
			return mpfr(true_value_,0);
		}