
c - Implementation of the trigonometric functions for real time ...
Apr 14, 2021 · From the execution time point of view it seems to me that the best approach for real time application is to use the look-up table based method of calculation with improvement of precion …
C++ templates for sin, cos, tan taylor series
Aug 6, 2017 · I used C++ metaprogramming to build taylor series for sin, cos, and tan (not really for tan). The whole thing is on my github. Please give any feedback related (but not limited) to style, functiona...
Find an unknown length using sohcahtoa (Trigonometry)
Oct 27, 2017 · Here is a calculator for an unknown side in a right-angle. Is there a more efficient way of doing this? import math def trigonometry (angle, side_length, known, unknown): o, h, a = 'opposite', '
Trim Functions in COBOL - Code Review Stack Exchange
A coworker, from a past programming life, called me up last week and asked about Trim Functions in COBOL. I sent her these PEFORMed "functions", which I've had lying about and without any …
Create a Penrose tiling - Code Review Stack Exchange
Aug 19, 2023 · You take trig functions of 18° + k × 72°, and a handful of other angles. So memoize those values, and move on to larger concerns.
String input and split functions in C - Code Review Stack Exchange
Apr 19, 2020 · I've some functions targeted to simplify working with strings in some of my other projects. I'd like feedback on this code and whether or not the implementation is efficient and memory safe. I …
C program for storing the time of the sunset and sunrise
Jan 16, 2023 · All functions are now static. I will start building my own little collection of C helper functions and organize them in individual files, after I've got some things up and running I will …
Ti-84+CE Reverse Polish Notation Progam - Code Review Stack Exchange
Apr 5, 2021 · A few weeks ago, I wrote a Reverse Polish Notation program for my Ti-84+CE calculator. It was a successor to a program I wrote in TI-BASIC a while back, but since that one had too much …
Find and replace a string in C/C++ without using standard library
Jan 27, 2020 · If you are unsure how to split your while loop, you could let the example above using the C library primitives guide you. Or you could do it blind and find out if you end up with similar …
Case insensitive sub-string search - Code Review Stack Exchange
Nov 15, 2017 · I found myself in a need of a function that checks whether a string is a sub-string of another string, in a case-insensitive manner. I found that there's no standard function to do this, so I …