Documentation API of the 'jhplot.math.num.PowerSeries' Java class

Class PowerSeries

  • public abstract class PowerSeriesextends IterativeMethod

    This class provides the means to evaluate infinite power series (1). To create a power series, authors subclass this class and provided a concrete term method.

    For example, this is the power series for the exponential function defined by (2):

     PowerSeries exponential = new PowerSeries() {     public double getTerm(int n) {         return 1.0 / factorial(n);     }      private double factorial(int n) {         double p = 1.0;         while(n > 1.0) {             p *= n--;         }         return p;     } } 


    1. Eric W. Weisstein. "Power Series." From MathWorld--A Wolfram Web Resource.
    2. Exponential Function: Series Representation.

    • Method Detail

      • evaluate

        public double evaluate(double x)                throws NumericException
        Evaluate this series at the given value.
        x - the point of evalutation.
        the value of this series evaluated at x.
        NumericException - if the series could not be evaluated.

DataMelt 1.1 © jWork.ORG

Warning: You see this message because an access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of dataMelt, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.