Skip to content

Move polyfit functions from STELLOPTV2 to LIBSTELL #370

Description

@ajchcoelho

The functions polyfit, polyfit_0_boundaries and polyval are currently in STELLOPTV2/Sources/Modules/equil_utils.f90. Due to their usefulness, they should be moved somewhere in LIBSTELL, such that they are easily accessed by other codes.

The function polyval should be generalized and vectorized in order to receive an array of values at which the polynomial is to be evaluated. The function polyval_der could also be created; this would compute the derivative (of given order) of a polynomial.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions