Skip to content

Juicestus/cmath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Justus' + Suhas' Math Library in C

Convention
==========
Use underscores
Constants and macros: all uppercase
Everything else: all lowercase

Constants are prefixed with M_
Functions are prefixed with m_
Buffers are prefixed with r_
Types are prefixed with t_

Organization
============
Function declarations are in a single header file:
- cmath.h

Implementations are in seperate files:
- impl_simple.c Simple miscellaneous functions
- impl_exp.c Exponent functions
- impl_trig.c Trig functions
- impl_arc.c Arc Trig functions
- impl_stat.c Stat functions

Testing:
- test_macros.h Macros used for testing
- test.c Main function for test cases

Todo
====
- more accurate arc trig functions
- pow and root
- hyperbolic trig functions
- stat functions

About

Custom C implementations for math.h

Resources

Stars

Watchers

Forks