FinitePowerSeries

com.phasmidsoftware.number.core.numerical.FinitePowerSeries
case class FinitePowerSeries[X, Y](coefficients: Seq[Y])(f: X => Y)(using evidence$1: Numeric[X], evidence$2: Numeric[Y]) extends PowerSeries[X, Y]

Represents a finite power series, a mathematical series with a finite number of terms, where each term is a power of a variable multiplied by a coefficient.

Type parameters

X

the type of the variable used in the series

Y

the type of the coefficients and the resulting terms of the series

Value parameters

coefficients

the coefficients of the power series, corresponding to each term

f

a function applied to the powers of the variable, which modifies each term in the series

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PowerSeries[X, Y]
trait X => Series[Y]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(x: X): Series[Y]

Computes a finite power series by combining the coefficients with the corresponding powers of the input value and applies a transformation function to each term.

Computes a finite power series by combining the coefficients with the corresponding powers of the input value and applies a transformation function to each term.

Value parameters

x

the input value used to compute the powers in the series

Attributes

Returns

a Series[Y] representing the resulting finite power series

Inherited methods

def andThen[A](g: Series[Y] => A): X => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
def compose[A](g: A => X): A => Series[Y]

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Concrete fields

val xn: Numeric[X]
val yn: Numeric[Y]