INGOR
Loading...
Searching...
No Matches
ytMath.h
1/*
2 math/ytMath.{h,c} : Math routines
3 Copyright (C) 2018, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8
9#ifndef __YTLIB_MATH_H
10#define __YTLIB_MATH_H
11
12#include <stdio.h>
13
16#define ytMath_PI 3.14159265358979323846264
17
20#define ytMath_min(x,y) (x < y ? x : y)
21
24#define ytMath_max(x,y) (x > y ? x : y)
25
26size_t ytMath_maxvSize_t(size_t size, const size_t * v);
27double ytMath_dnorm(double x, double m, double v);
28double ytMath_ldnorm(double x, double m, double v);
29void ytMath_debug();
30
31#endif /* __YTLIB_MATH_H */