analysishelper.hxx (f6a6b25f) | analysishelper.hxx (feb8f109) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 429 unchanged lines hidden (view full) --- 438 439class Complex 440{ 441 double r; 442 double i; 443 sal_Unicode c; 444 445public: | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 429 unchanged lines hidden (view full) --- 438 439class Complex 440{ 441 double r; 442 double i; 443 sal_Unicode c; 444 445public: |
446 inline Complex( double fReal, double fImag = 0.0, sal_Char cC = '\0' ); | 446 inline Complex( double fReal, double fImag = 0.0, sal_Unicode cC = '\0' ); |
447 Complex( const STRING& rComplexAsString ) THROWDEF_RTE_IAE; 448 449 inline static sal_Bool IsImagUnit( sal_Unicode c ); 450 static sal_Bool ParseString( const STRING& rComplexAsString, Complex& rReturn ); 451 STRING GetString() const THROWDEF_RTE_IAE; 452 453 inline double Real( void ) const; 454 inline double Imag( void ) const; --- 11 unchanged lines hidden (view full) --- 466 inline void Conjugate( void ); 467 void Ln( void ) THROWDEF_RTE_IAE; 468 void Log10( void ) THROWDEF_RTE_IAE; 469 void Log2( void ) THROWDEF_RTE_IAE; 470 inline void Mult( double fFact ); 471 inline void Mult( const Complex& rMult ); 472 inline void Sub( const Complex& rMult ); 473 inline void Add( const Complex& rAdd ); | 447 Complex( const STRING& rComplexAsString ) THROWDEF_RTE_IAE; 448 449 inline static sal_Bool IsImagUnit( sal_Unicode c ); 450 static sal_Bool ParseString( const STRING& rComplexAsString, Complex& rReturn ); 451 STRING GetString() const THROWDEF_RTE_IAE; 452 453 inline double Real( void ) const; 454 inline double Imag( void ) const; --- 11 unchanged lines hidden (view full) --- 466 inline void Conjugate( void ); 467 void Ln( void ) THROWDEF_RTE_IAE; 468 void Log10( void ) THROWDEF_RTE_IAE; 469 void Log2( void ) THROWDEF_RTE_IAE; 470 inline void Mult( double fFact ); 471 inline void Mult( const Complex& rMult ); 472 inline void Sub( const Complex& rMult ); 473 inline void Add( const Complex& rAdd ); |
474 void Tan( void ) THROWDEF_RTE_IAE; 475 void Sec( void ) THROWDEF_RTE_IAE; 476 void Csc( void ) THROWDEF_RTE_IAE; 477 void Cot( void ) THROWDEF_RTE_IAE; 478 void Sinh( void ) THROWDEF_RTE_IAE; 479 void Cosh( void ) THROWDEF_RTE_IAE; 480 void Sech( void ) THROWDEF_RTE_IAE; 481 void Csch( void ) THROWDEF_RTE_IAE; 482 |
|
474}; 475 476 477 478 479enum ComplListAppendHandl 480{ 481 AH_EmptyAsErr, --- 301 unchanged lines hidden (view full) --- 783 784 785inline const FuncData* FuncDataList::Get( sal_uInt32 n ) const 786{ 787 return ( const FuncData* ) MyList::GetObject( n ); 788} 789 790 | 483}; 484 485 486 487 488enum ComplListAppendHandl 489{ 490 AH_EmptyAsErr, --- 301 unchanged lines hidden (view full) --- 792 793 794inline const FuncData* FuncDataList::Get( sal_uInt32 n ) const 795{ 796 return ( const FuncData* ) MyList::GetObject( n ); 797} 798 799 |
791inline Complex::Complex( double fReal, double fImag, sal_Char cC ) : | 800inline Complex::Complex( double fReal, double fImag, sal_Unicode cC ) : |
792 r( fReal ), i( fImag ), c( cC ) 793{ 794} 795 796 797inline double Complex::Real( void ) const 798{ 799 return r; --- 302 unchanged lines hidden --- | 801 r( fReal ), i( fImag ), c( cC ) 802{ 803} 804 805 806inline double Complex::Real( void ) const 807{ 808 return r; --- 302 unchanged lines hidden --- |