Ags.SolverPolynomial

g Ags.SolverPolynomial Ags.SolverPolynomial GObject.Object GObject.Object GObject.Object->Ags.SolverPolynomial

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new ()

add (polynomial_b)

divide (polynomial_b)

extract_root (polynomial_b)

get_coefficient ()

get_coefficient_value ()

get_exponent ()

get_polynomial ()

get_symbol ()

multiply (polynomial_b)

parse (polynomial)

raise_power (polynomial_b)

set_coefficient (coefficient)

set_coefficient_value (coefficient_value)

set_polynomial (polynomial)

subtract (polynomial_b)

update ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

coefficient

str

r/w

The coefficient this solver polynomial is assigned to

coefficient-value

Ags.Complex

r/w

The coefficient value

exponent

int

r

The exponent this solver polynomial is assigned to

exponent-value

int

r

The exponent value

polynomial

str

r/w

The polynomial this solver polynomial is assigned to

symbol

int

r/w

The symbol this solver polynomial is assigned to

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

coefficient

str

r

coefficient_value

Ags.Complex

r

exponent

str

r

exponent_value

Ags.Complex

r

flags

int

r

gobject

GObject.Object

r

obj_mutex

GLib.RecMutex

r

polynomial

str

r

symbol

str

r

Class Details

class Ags.SolverPolynomial(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ags.SolverPolynomialClass

classmethod error_quark()
Return type:

int

classmethod new()
Returns:

the new instance

Return type:

Ags.SolverPolynomial

Instantiate a new Ags.SolverPolynomial.

New in version 3.2.0.

add(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the second summand

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform addition of self and polynomial_b. Both summands need to have the very same symbol and exponent, otherwise None returned and error is appropriately set.

New in version 3.2.0.

divide(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the divisor

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform division of self and polynomial_b.

New in version 3.2.0.

extract_root(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the index of root

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform raising power of self and polynomial_b.

New in version 3.2.0.

get_coefficient()
Returns:

the coefficient

Return type:

str

Get coefficient of self.

New in version 3.9.3.

get_coefficient_value()
Returns:

the coefficient value

Return type:

Ags.Complex

Get coefficient value of self.

New in version 3.9.3.

get_exponent()
Returns:

the exponent

Return type:

[str]

Get exponent of self.

New in version 3.9.3.

get_polynomial()
Returns:

the polynomial

Return type:

str

Get polynomial of self.

New in version 3.9.3.

get_symbol()
Returns:

the symbol

Return type:

[str]

Get symbol of self.

New in version 3.9.3.

multiply(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the second factor

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform multiplication of self and polynomial_b.

New in version 3.2.0.

parse(polynomial)
Parameters:

polynomial (str) – the polynomial as string

Parse polynomial and apply to self.

New in version 3.2.0.

raise_power(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the exponent

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform raising power of self and polynomial_b.

New in version 3.2.0.

set_coefficient(coefficient)
Parameters:

coefficient (str) – the coefficient

Set coefficient of self.

New in version 3.9.3.

set_coefficient_value(coefficient_value)
Parameters:

coefficient_value (Ags.Complex) – the coefficient value

Set coefficient_value of self.

New in version 3.9.3.

set_polynomial(polynomial)
Parameters:

polynomial (str) – the polynomial

Set polynomial of self.

New in version 3.9.3.

subtract(polynomial_b)
Parameters:

polynomial_b (Ags.SolverPolynomial) – the subtrahend

Raises:

GLib.Error

Returns:

the newly instantiated Ags.SolverPolynomial or None

Return type:

Ags.SolverPolynomial

Perform subtraction of self and polynomial_b. Both minuend and subtrahend need to have the very same symbol and exponent, otherwise None returned and error is appropriately set.

New in version 3.2.0.

update()

Update string representation of self.

New in version 3.2.0.

Property Details

Ags.SolverPolynomial.props.coefficient
Name:

coefficient

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned coefficient.

New in version 3.2.0.

Ags.SolverPolynomial.props.coefficient_value
Name:

coefficient-value

Type:

Ags.Complex

Default Value:

None

Flags:

READABLE, WRITABLE

Coefficient value.

New in version 3.2.0.

Ags.SolverPolynomial.props.exponent
Name:

exponent

Type:

int

Default Value:

None

Flags:

READABLE

The assigned exponent.

New in version 3.2.0.

Ags.SolverPolynomial.props.exponent_value
Name:

exponent-value

Type:

int

Default Value:

None

Flags:

READABLE

Exponent value.

New in version 3.2.0.

Ags.SolverPolynomial.props.polynomial
Name:

polynomial

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned polynomial.

New in version 3.2.0.

Ags.SolverPolynomial.props.symbol
Name:

symbol

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned symbol.

New in version 3.2.0.