5 Years Ago 5 Years Ago Hi I am trying to write a code that finds approximations of sine and cosine using the equations below with a given value of theta in degrees basically as a novice programmer i am having trouble setting upa a while loop for the expansions. Also can you guys please quote sources(books,web pages, etc.) for a beginner programmer in python for syntax and basic concepts. cos(x)= 1- x2/2! + x4/4! - x6/6! + .. sin(x)= x - x3/3! + x5/5! - x7/7! + .. Thanks in advance. 0 65 6 Years Ago 6 Years Ago Hello everyone. I'm working on a project that acts as a function generator to output a sine wave. The program also outputs an excel file with all of the data points so one can plot the points. For some reason, when I add noise, the graph does not look right. Can anyone tell me why? I appreciate the help. Here is my code: #include "stdafx.h" #include #include #include #include #include #include #include #include #include using namespace std; void lab_7 (void) { srand((unsigned)time(0)); // declarations FILE *fptr; char fileName[50] = ""; double … 0 26 9 Years Ago 9 Years Ago Hi, I am developing some code to run on hardware and I am using the sin() and cos() functions inside the standard math.h many times, which slows the program down dramatically. I was wondering if there is a way to "approximate" the sine and cosine of a value (angle is between 0 and 2pi). Apparently there is a way to do it using look up tables but I don't really know how to create one? I would like to do it using just basic arithmetic operators, no math.h functions. Is there a simple way to compute the sine and cosine … 0 7

The End.