![]() ![]() 00269 node * constant::differentiate ( char *)Ġ0271 constant * res = new constant ( TAG_DOUBLE) Ġ0276 // Constructor creates an instance of the reference class. 00262 constant * constant::evaluate ( void)Ġ0268 // Returns the derivative of a constant. 00256 int constant::evalType ( void)Ġ0261 // Returns the result stored in the constant. 00163 static char * Cplx2String ( nr_complex_t c)Ġ0165 static char str // enough for a real or complex number 00166 if ( imag (c) = 0.0)Ġ0168 sprintf (str, "%g", ( double) real (c)) Ġ0172 sprintf (str, "(%g%cj%g)", ( double ) real (c),Ġ0173 imag (c) >= 0.0 ? '+' : '-', ( double) fabs ( imag (c))) Ġ0178 /* This function returns a string representation depending on the type 00179 of constant. */ 00157 void constant::print ( void)Ġ0159 logprint ( LOG_STATUS, "%s", toString ()) Ġ0162 // Returns the string representation of a complex value. 00127 constant::~constant ()Ġ0155 /* Depending on the type of constant the function prints the textual 00156 representation of the object. 00121 node * constant::recreate ( void)Ġ0126 // Destructor deletes an instance of the constant class. r) Ġ0120 // Re-creates the given instance. */ 00082 constant::constant ( const constant & o) : node (o)Ġ0097 c = dataref ? o. 00072 constant::constant ( int tag) : node ( CONSTANT)Ġ0080 /* This copy constructor creates a instance of the constant class 00081 based on the given constant. 00063 constant::constant () : node ( CONSTANT)Ġ0071 // This constructor creates an typed instance of the constant class. ![]() ![]() If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this package see the file COPYING. See the 00014 * GNU General Public License for more details. 00010 * 00011 * This software is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00001 /* 00002 * equation.cpp - checker for the Qucs equations 00003 * 00004 * Copyright (C) 2004-2009 Stefan Jahn 00005 * 00006 * This is free software you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation either version 2, or (at your option) 00009 * any later version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |