Skip to content

silversurfer98/Trignometry-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trignometry - 101 --> calculates sine and cosine using taylors series

  1. this is a C++ class for trignometry functions
  2. this also contains timer class to access performance

useful notes https://stackoverflow.com/questions/38917692/sin-cos-funcs-without-file_name-h

  1. primitive compile methods
# compile and run the file)name.cpp
g++ -c file_name.cpp && g++ file_name.o -o file_name.out && del file_name.o
  1. setup class trignometry using
# accuracy rating max upto 20 i recommend 10
# 'r' for radians and 'd' for degree input
# t is the class name call sin and cos as t.sin(30)
trignometry t(ACCURACY,'r');
  1. if u want to use timer includde timer.h and call timer class in paraentheses
# create class
{ 
timer tim;
........... write ur code here .........
}

About

sin/cos class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published