The SKIRT project
advanced radiative transfer for astrophysics
Static Public Member Functions | List of all members
Cubic Class Reference

#include <Cubic.hpp>

Static Public Member Functions

static double pow3 (double x)
 
static double pow3 (double x0, double x1)
 

Detailed Description

This static class offers some basic functions to raise values to the third power.

Member Function Documentation

◆ pow3() [1/2]

static double Cubic::pow3 ( double  x)
inlinestatic

This function returns x3.

◆ pow3() [2/2]

static double Cubic::pow3 ( double  x0,
double  x1 
)
inlinestatic

This function returns x13x03=(x1x0)(x12+x1x0+x02). The second form is used because it is more numerically stable.


The documentation for this class was generated from the following file: