labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

nsl_math.h File Reference
#include <stdbool.h>
Include dependency graph for nsl_math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M_PI_180   (M_PI/180.)
 
#define M_180_PI   (180./M_PI)
 

Functions

bool nsl_math_approximately_equal (double a, double b)
 
bool nsl_math_essentially_equal (double a, double b)
 
bool nsl_math_definitely_greater_than (double a, double b)
 
bool nsl_math_definitely_less_than (double a, double b)
 
bool nsl_math_approximately_equal_eps (double a, double b, double epsilon)
 
bool nsl_math_essentially_equal_eps (double a, double b, double epsilon)
 
bool nsl_math_definitely_greater_than_eps (double a, double b, double epsilon)
 
bool nsl_math_definitely_less_than_eps (double a, double b, double epsilon)
 
int nsl_math_decimal_places (double value)
 
int nsl_math_rounded_decimals (double value)
 
int nsl_math_rounded_decimals_max (double value, int max)
 
double nsl_math_round_places (double value, unsigned int n)
 
double nsl_math_round_precision (double value, unsigned int p)
 

Macro Definition Documentation

◆ M_180_PI

#define M_180_PI   (180./M_PI)

Definition at line 35 of file nsl_math.h.

◆ M_PI_180

#define M_PI_180   (M_PI/180.)

File : nsl_math.h Project : LabPlot

Description : NSL math functions

Copyright : (C) 2018-2020 by Stefan Gerlach (stefa.nosp@m.n.ge.nosp@m.rlach.nosp@m.@uni.nosp@m..kn)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
  • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 34 of file nsl_math.h.

Function Documentation

◆ nsl_math_approximately_equal()

bool nsl_math_approximately_equal ( double  a,
double  b 
)

File : nsl_math.c Project : LabPlot

Description : NSL math functions

Copyright : (C) 2018-2020 by Stefan Gerlach (stefa.nosp@m.n.ge.nosp@m.rlach.nosp@m.@uni.nosp@m..kn)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
  • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 32 of file nsl_math.c.

References nsl_math_approximately_equal_eps().

◆ nsl_math_approximately_equal_eps()

bool nsl_math_approximately_equal_eps ( double  a,
double  b,
double  epsilon 
)

Definition at line 36 of file nsl_math.c.

Referenced by nsl_math_approximately_equal().

◆ nsl_math_decimal_places()

int nsl_math_decimal_places ( double  value)

Definition at line 66 of file nsl_math.c.

Referenced by nsl_math_rounded_decimals().

◆ nsl_math_definitely_greater_than()

bool nsl_math_definitely_greater_than ( double  a,
double  b 
)

◆ nsl_math_definitely_greater_than_eps()

bool nsl_math_definitely_greater_than_eps ( double  a,
double  b,
double  epsilon 
)

Definition at line 52 of file nsl_math.c.

Referenced by nsl_math_definitely_greater_than().

◆ nsl_math_definitely_less_than()

bool nsl_math_definitely_less_than ( double  a,
double  b 
)

◆ nsl_math_definitely_less_than_eps()

bool nsl_math_definitely_less_than_eps ( double  a,
double  b,
double  epsilon 
)

Definition at line 60 of file nsl_math.c.

Referenced by nsl_math_definitely_less_than().

◆ nsl_math_essentially_equal()

bool nsl_math_essentially_equal ( double  a,
double  b 
)

◆ nsl_math_essentially_equal_eps()

bool nsl_math_essentially_equal_eps ( double  a,
double  b,
double  epsilon 
)

Definition at line 44 of file nsl_math.c.

Referenced by nsl_math_essentially_equal().

◆ nsl_math_round_places()

double nsl_math_round_places ( double  value,
unsigned int  n 
)

◆ nsl_math_round_precision()

double nsl_math_round_precision ( double  value,
unsigned int  p 
)

◆ nsl_math_rounded_decimals()

◆ nsl_math_rounded_decimals_max()

int nsl_math_rounded_decimals_max ( double  value,
int  max 
)

Definition at line 80 of file nsl_math.c.

References nsl_math_rounded_decimals().