Java Doc for Term.java in  » Science » jscience-4.3.1 » org » jscience » mathematics » function » 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 » Science » jscience 4.3.1 » org.jscience.mathematics.function 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jscience.mathematics.function.Term

Term
final public class Term implements Serializable,Comparable<Term>,ValueType,Realtime(Code)
This class represents the term of a Polynomial polynomial such as x·y².
author:
   Jean-Marie Dautelle
version:
   3.0, February 13, 2006


Field Summary
public static  TermONE
     Holds the multiplicative identity.


Method Summary
public  intcompareTo(Term that)
     Compares this term with the one specified for order.
Parameters:
  that - the term to be compared to.
public  Termcopy()
     Returns an entierely new copy of this term javolution.context.AllocatorContext allocated by the calling thread (possibly on the stack).
public  Termdivide(Term that)
     Return the division of this term with the one specified.
public  booleanequals(Object obj)
     Indicates if this term is equal to the object specified.
Parameters:
  obj - the object to compare for equality.
 Ringevaluate()
     Evaluates this term by replacing its Variablevariables by their current (context-local) values.
public  intgetPower(int index)
     Returns the power of the variable at the specified position.
Parameters:
  index - the variable index.
public  intgetPower(Variable v)
     Returns the power of the specified variable.
Parameters:
  v - the variable for which the power is returned.
public  VariablegetVariable(int index)
     Returns the variable at the specified index (variables are lexically ordered).
Parameters:
  index - the variable index.
final public  inthashCode()
     Returns a hash code for this term.
public  intsize()
     Returns the number of variables for this term.
public  Termtimes(Term that)
     Return the product of this term with the one specified.
final public  StringtoString()
     Returns the text representation of this term as a java.lang.String.
public  TexttoText()
     Returns the text representation of this term.
public static  TermvalueOf(Variable v, int n)
     Return the term corresponding to the specified variable raised to the specified power.
Parameters:
  v - the variable.
Parameters:
  n - the power.

Field Detail
ONE
public static Term ONE(Code)
Holds the multiplicative identity.





Method Detail
compareTo
public int compareTo(Term that)(Code)
Compares this term with the one specified for order.
Parameters:
  that - the term to be compared to. a negative integer, zero, or a positive integer as this termis less than, equal to, or greater than the specified term.



copy
public Term copy()(Code)
Returns an entierely new copy of this term javolution.context.AllocatorContext allocated by the calling thread (possibly on the stack). an identical and independant copy of this term.



divide
public Term divide(Term that)(Code)
Return the division of this term with the one specified.
Parameters:
  that - the term divisor. this / that
throws:
  UnsupportedOperationException - if this division would result in negative power.
throws:
  IllegalArgumentException - if the specified term holds a variable having the same symbol as one of the variable ofthis term; but both variables are distinct.



equals
public boolean equals(Object obj)(Code)
Indicates if this term is equal to the object specified.
Parameters:
  obj - the object to compare for equality. true if this term and the specified object areconsidered equal; false otherwise.



evaluate
Ring evaluate()(Code)
Evaluates this term by replacing its Variablevariables by their current (context-local) values. the evaluation of this term or null if ONE.
throws:
  FunctionException - if any of this term's variable is not set.



getPower
public int getPower(int index)(Code)
Returns the power of the variable at the specified position.
Parameters:
  index - the variable index. the power of the variable at the specified index.
throws:
  IndexOutOfBoundsException - if (index < 0) || (index >= size())



getPower
public int getPower(Variable v)(Code)
Returns the power of the specified variable.
Parameters:
  v - the variable for which the power is returned. the power of the corresponding variable or 0 if this term does not hold the specified variable.



getVariable
public Variable getVariable(int index)(Code)
Returns the variable at the specified index (variables are lexically ordered).
Parameters:
  index - the variable index. this term variables at specified position.
throws:
  IndexOutOfBoundsException - if (index < 0) || (index >= size())



hashCode
final public int hashCode()(Code)
Returns a hash code for this term. a hash code value for this object.



size
public int size()(Code)
Returns the number of variables for this term. the number of variables.



times
public Term times(Term that)(Code)
Return the product of this term with the one specified.
Parameters:
  that - the term multiplier. this · that
throws:
  IllegalArgumentException - if the specified term holds a variable having the same symbol as one of the variable ofthis term; but both variables are distinct.



toString
final public String toString()(Code)
Returns the text representation of this term as a java.lang.String. toText().toString()



toText
public Text toText()(Code)
Returns the text representation of this term.



valueOf
public static Term valueOf(Variable v, int n)(Code)
Return the term corresponding to the specified variable raised to the specified power.
Parameters:
  v - the variable.
Parameters:
  n - the power. the term for vn
throws:
  IllegalArgumentException - if n < 0



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.