About 50 results
Open links in new tab
  1. c - Implementation of the trigonometric functions for real time ...

    Apr 14, 2021 · Based on that I have decided to implement those functions in my own. From the execution time point of view it seems to me that the best approach for real time application is to use …

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

  3. Sine function in C - Code Review Stack Exchange

    Here is the custom sine, pow and factorial functions I wrote (assume they are all part of the same namespace and not using cmath). I looking for suggestions to improve robustness and efficiency. For …

  4. 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', '

  5. Basic Trigonometry written in python3 - Code Review Stack Exchange

    Below is the code I wrote to perform basic Trigonometry without using the math module (except for 1 place) for the purpose of teaching myself basic trig and to improve my python.

  6. Create a Penrose tiling - Code Review Stack Exchange

    Aug 19, 2023 · As mentioned in the comments, memoize the trig functions (basically make a local cache in setup). Use angle % 360 as key to get memoized values. In the switch, cases 2 and 3 can be …

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

  8. 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 …

  9. CUDA/C++ Host/Device Polymorphic Class Implementation

    May 2, 2018 · The ability to call functions of this interface from host AND device with the same underlying implementation As performant as possible The way I've achieved this is to: specify a base …

  10. Compute index in a ring buffer - Code Review Stack Exchange

    Mar 8, 2025 · I have a buffer implemented as a fixed-size std::vector with two begin and end pointers dedicated for delimiting the low and the high boundary for the values in the ring buffer. The first …