File: logRep.cpp

package info (click to toggle)
fastml 3.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,772 kB
  • sloc: cpp: 48,522; perl: 3,588; ansic: 819; makefile: 386; python: 83; sh: 55
file content (30 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifdef LOGREP
#include "logRep.h"
#include <cmath>

//logRep::logRep()
//{
//	_log = VERYSMALL2;
//}

//logRep::logRep(MDOUBLE a){
//	_log = ((a==0.0) ? VERYSMALL2 : log(a));
//}


//logRep::logRep(const logRep& other): _log(other._log) {}



MDOUBLE convert(const logRep& a){
	return exp(a.getLog());
}




ostream& operator<<(ostream &out, const logRep& a){
	a.output(out);
    return out;
}
#endif