Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 808 Bytes

ReadMe.md

File metadata and controls

29 lines (24 loc) · 808 Bytes

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 .........
}