GiNaCRA
0.6.4
|
00001 /* 00002 * GiNaCRA - GiNaC Real Algebra package 00003 * Copyright (C) 2010-2012 Ulrich Loup, Joachim Redies, Sebastian Junges 00004 * 00005 * This file is part of GiNaCRA. 00006 * 00007 * GiNaCRA is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * GiNaCRA is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with GiNaCRA. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 */ 00021 00022 00023 /* 00024 * @author: Joachim Redies 00025 * @author: Ulrich Loup 00026 * @since: 2011-10-25 00027 * @version: 2012-05-02 00028 */ 00029 00030 #include "RealAlgebraicNumber.h" 00031 #include "RealAlgebraicNumberFactory.h" // for the methods working on both representations 00032 00033 using GiNaC::ZERO_SIGN; 00034 00035 namespace GiNaCRA 00036 { 00038 // Con- and destructors // 00040 00041 RealAlgebraicNumber::RealAlgebraicNumber( bool isRoot, bool isNumeric, const numeric& value ): 00042 mIsRoot( isRoot ), 00043 mIsNumeric( isNumeric ), 00044 mValue( value ) 00045 {} 00046 00047 RealAlgebraicNumber::~RealAlgebraicNumber(){} 00048 00050 // Operations // 00052 00053 GiNaC::sign RealAlgebraicNumber::sgn() const 00054 { 00055 return ZERO_SIGN; 00056 } 00057 00058 GiNaC::sign RealAlgebraicNumber::sgn( const RationalUnivariatePolynomial& p ) const 00059 { 00060 return ZERO_SIGN; 00061 } 00062 00063 const numeric RealAlgebraicNumber::approximateValue() const 00064 { 00065 return 0; 00066 } 00067 } // namespace GiNaC 00068