Java Doc for RealNum.java in  » Scripting » Kawa » gnu » math » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.math 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      gnu.math.Numeric
         gnu.math.Quantity
            gnu.math.Complex
               gnu.math.RealNum

All known Subclasses:   gnu.math.DFloNum,  gnu.math.RatNum,
RealNum
abstract public class RealNum extends Complex implements Comparable(Code)




Method Summary
public  Numericabs()
    
public static  RealNumadd(RealNum x, RealNum y, int k)
    
abstract public  Numericadd(Object obj, int k)
    
public  java.math.BigDecimalasBigDecimal()
    
public  intcompareTo(Object o)
     Implements the Comparable interface.
abstract public  Numericdiv(Object obj)
    
public static  RealNumdivide(RealNum x, RealNum y)
    
public  Complexexp()
    
final public  RealNumim()
    
abstract public  booleanisNegative()
    
public  booleanisZero()
    
public  Complexlog()
    
public  RealNummax(RealNum x)
    
public  RealNummin(RealNum x)
    
abstract public  Numericmul(Object obj)
    
final public  RealNumre()
    
final public  RealNumrneg()
    
abstract public  intsign()
     Return 1 if >0; 0 if ==0; -1 if <0; -2 if NaN.
final public  Complexsin()
    
final public  Complexsqrt()
    
public static  RealNumtimes(RealNum x, RealNum y)
    
public  RatNumtoExact()
     Convert to an exact number.
public  IntNumtoExactInt(int rounding_mode)
     Converts to an exact integer, with specified rounding mode.
public static  IntNumtoExactInt(double value, int rounding_mode)
     Converts real to an exact integer, with specified rounding mode.
public static  IntNumtoExactInt(double value)
     Converts an integral double (such as a toInt result) to an IntNum.
public static  doubletoInt(double d, int rounding_mode)
     Converts a real to an integer, according to a specified rounding mode. Note an inexact argument gives an inexact result, following Scheme. See also RatNum.toExactInt.
public  RealNumtoInt(int rounding_mode)
     Converts a real to an integer, according to a specified rounding mode. Note an inexact argument gives an inexact result, following Scheme. See also toExactInt.
public static  IntNumtoScaledInt(double f, int k)
     Convert double to (rounded) integer, after multiplying by 10**k.
public static  IntNumtoScaledInt(RatNum r, int k)
     Convert rational to (rounded) integer, after multiplying by 10**k.
public  IntNumtoScaledInt(int k)
     Convert this to (rounded) integer, after multiplying by 10**k.
public static  StringtoStringDecimal(String dstr)
    
public static  StringtoStringScientific(float d)
    
public static  StringtoStringScientific(double d)
    
public static  StringtoStringScientific(String dstr)
     Convert result of Double.toString or Float.toString to scientific notation.
public static  inttoStringScientific(String dstr, StringBuffer sbuf)
    



Method Detail
abs
public Numeric abs()(Code)



add
public static RealNum add(RealNum x, RealNum y, int k)(Code)



add
abstract public Numeric add(Object obj, int k)(Code)



asBigDecimal
public java.math.BigDecimal asBigDecimal()(Code)



compareTo
public int compareTo(Object o)(Code)
Implements the Comparable interface. This ordering isn't fully consistent with equals, since say it returns 0 when comparing 1.5 and 3/2, though they are not equals.



div
abstract public Numeric div(Object obj)(Code)



divide
public static RealNum divide(RealNum x, RealNum y)(Code)



exp
public Complex exp()(Code)



im
final public RealNum im()(Code)



isNegative
abstract public boolean isNegative()(Code)



isZero
public boolean isZero()(Code)



log
public Complex log()(Code)



max
public RealNum max(RealNum x)(Code)



min
public RealNum min(RealNum x)(Code)



mul
abstract public Numeric mul(Object obj)(Code)



re
final public RealNum re()(Code)



rneg
final public RealNum rneg()(Code)



sign
abstract public int sign()(Code)
Return 1 if >0; 0 if ==0; -1 if <0; -2 if NaN.



sin
final public Complex sin()(Code)



sqrt
final public Complex sqrt()(Code)



times
public static RealNum times(RealNum x, RealNum y)(Code)



toExact
public RatNum toExact()(Code)
Convert to an exact number. Implements the Scheme inexact->exact (for real numbers).



toExactInt
public IntNum toExactInt(int rounding_mode)(Code)
Converts to an exact integer, with specified rounding mode.



toExactInt
public static IntNum toExactInt(double value, int rounding_mode)(Code)
Converts real to an exact integer, with specified rounding mode.



toExactInt
public static IntNum toExactInt(double value)(Code)
Converts an integral double (such as a toInt result) to an IntNum.



toInt
public static double toInt(double d, int rounding_mode)(Code)
Converts a real to an integer, according to a specified rounding mode. Note an inexact argument gives an inexact result, following Scheme. See also RatNum.toExactInt.



toInt
public RealNum toInt(int rounding_mode)(Code)
Converts a real to an integer, according to a specified rounding mode. Note an inexact argument gives an inexact result, following Scheme. See also toExactInt.



toScaledInt
public static IntNum toScaledInt(double f, int k)(Code)
Convert double to (rounded) integer, after multiplying by 10**k.



toScaledInt
public static IntNum toScaledInt(RatNum r, int k)(Code)
Convert rational to (rounded) integer, after multiplying by 10**k.



toScaledInt
public IntNum toScaledInt(int k)(Code)
Convert this to (rounded) integer, after multiplying by 10**k.



toStringDecimal
public static String toStringDecimal(String dstr)(Code)



toStringScientific
public static String toStringScientific(float d)(Code)



toStringScientific
public static String toStringScientific(double d)(Code)



toStringScientific
public static String toStringScientific(String dstr)(Code)
Convert result of Double.toString or Float.toString to scientific notation. Does not validate the input.



toStringScientific
public static int toStringScientific(String dstr, StringBuffer sbuf)(Code)



Methods inherited from gnu.math.Complex
public Numeric abs()(Code)(Java Doc)
public static Complex add(Complex x, Complex y, int k)(Code)(Java Doc)
public Numeric add(Object y, int k)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public RealNum angle()(Code)(Java Doc)
public static int compare(Complex x, Complex y)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public Numeric div(Object y)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public static Complex divide(Complex x, Complex y)(Code)(Java Doc)
public double doubleImagValue()(Code)(Java Doc)
final public double doubleRealValue()(Code)(Java Doc)
public double doubleValue()(Code)(Java Doc)
public static boolean equals(Complex x, Complex y)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public Complex exp()(Code)(Java Doc)
public static CComplex imMinusOne()(Code)(Java Doc)
public static CComplex imOne()(Code)(Java Doc)
public boolean isExact()(Code)(Java Doc)
public boolean isZero()(Code)(Java Doc)
public Complex log()(Code)(Java Doc)
public long longValue()(Code)(Java Doc)
public static Complex make(RealNum re, RealNum im)(Code)(Java Doc)
public static Complex make(double re, double im)(Code)(Java Doc)
public Numeric mul(Object y)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public static Complex neg(Complex x)(Code)(Java Doc)
public Numeric neg()(Code)(Java Doc)
public Complex number()(Code)(Java Doc)
public static DComplex polar(double r, double t)(Code)(Java Doc)
public static DComplex polar(RealNum r, RealNum t)(Code)(Java Doc)
public static Complex power(Complex x, Complex y)(Code)(Java Doc)
public Complex sqrt()(Code)(Java Doc)
public static Complex times(Complex x, Complex y)(Code)(Java Doc)
public String toString(int radix)(Code)(Java Doc)

Methods inherited from gnu.math.Quantity
public Numeric abs()(Code)(Java Doc)
public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc)
public Numeric add(Object y, int k)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public static int compare(Quantity x, Quantity y)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
public Dimensions dimensions()(Code)(Java Doc)
public Numeric div(Object y)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc)
public double doubleImagValue()(Code)(Java Doc)
public double doubleValue()(Code)(Java Doc)
public RealNum im()(Code)(Java Doc)
final public double imValue()(Code)(Java Doc)
public static Quantity make(Complex x, Unit u)(Code)(Java Doc)
public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc)
public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc)
public Numeric mul(Object y)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric neg()(Code)(Java Doc)
abstract public Complex number()(Code)(Java Doc)
public RealNum re()(Code)(Java Doc)
final public double reValue()(Code)(Java Doc)
public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc)
public String toString(int radix)(Code)(Java Doc)
public Unit unit()(Code)(Java Doc)

Fields inherited from gnu.math.Numeric
final public static int CEILING(Code)(Java Doc)
final public static int FLOOR(Code)(Java Doc)
final public static int ROUND(Code)(Java Doc)
final public static int TRUNCATE(Code)(Java Doc)

Methods inherited from gnu.math.Numeric
abstract public Numeric abs()(Code)(Java Doc)
abstract public Numeric add(Object obj, int k)(Code)(Java Doc)
final public Numeric add(Object obj)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
abstract public Numeric div(Object obj)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public Numeric div_inv()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public float floatValue()(Code)(Java Doc)
public boolean geq(Object x)(Code)(Java Doc)
public boolean grt(Object x)(Code)(Java Doc)
public int intValue()(Code)(Java Doc)
abstract public boolean isExact()(Code)(Java Doc)
abstract public boolean isZero()(Code)(Java Doc)
public long longValue()(Code)(Java Doc)
abstract public Numeric mul(Object obj)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric mul_ident()(Code)(Java Doc)
abstract public Numeric neg()(Code)(Java Doc)
public Numeric power(IntNum y)(Code)(Java Doc)
final public Numeric sub(Object obj)(Code)(Java Doc)
abstract public String toString(int radix)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Number
public byte byteValue()(Code)(Java Doc)
abstract public double doubleValue()(Code)(Java Doc)
abstract public float floatValue()(Code)(Java Doc)
abstract public int intValue()(Code)(Java Doc)
abstract public long longValue()(Code)(Java Doc)
public short shortValue()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.