Calculating cos using taylor series

완료 등록 시간: 6년 전 착불
완료 착불

Write a function, cos(x), using the expansion below and use it in a program to find the cosine of values read until EOF. ONLY USE STDIO.H NOT MATH.H

Here you will be writing a function:

double cos(float);

to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you can do the later, the former should be easy) to a precision of 4 decimal places (within 0.00005). You should put the function cos() in the file called trig.c. You should write functions for factorial() and close_enough() in the file called util.c. This last function is given two doubles and returns true if they are within 0.00005 of each other. You can put any other functions you may want in util.c as well. You will need to provide your own .h files for each of these .c files. You should also write a simple test driver to exercise your function in the file driver1.c. You should update the makefile to compile and link driver1.c, trig.c, util.c and exponent.c when you type

make trig

and create the executable called trig.

알고리즘 C 프로그래밍 수학

프로젝트 ID: #15659467

프로젝트 소개

8 건(제안서) 재택 근무형 프로젝트 서비스 이용 중: 6년 전

수상자:

Ebabi

A proposal has not yet been provided

$30 USD (1일 이내)
(8건의 리뷰)
2.8

이 일자리에 대한 프리랜서 8 명의 평균 입찰가: $42

vtatarenko

Hi there! I am able to do your project. You can view my profile to make sure that I am a right person. Regards, Valentin Relevant Skills and Experience c, math Proposed Milestones $40 USD - price

$40 USD (1일 이내)
(38 리뷰)
5.0
freelancerSolvit

I can write the code but not the makefile (I've only used Visual Studio which handles most of the heavy lifting) Relevant Skills and Experience C/C++ and Java Programming. Proposed Milestones $25 USD - Payment after 기타

$25 USD (0일 이내)
(25 리뷰)
4.5
joeyabuki

hi i can help u to write this in C language Relevant Skills and Experience i am good at c/c++ and C# Proposed Milestones $35 USD - 35

$35 USD (1일 이내)
(3 리뷰)
3.8
sagaragarwal1993

professional experience of more then 3 years. I can help you

$111 USD (1일 이내)
(2 리뷰)
2.9
stheperfectstorm

I have done this before. I have good experience and knowledge in numerical methods and it's implementation using any language. I'll implement Taylor series as you want.

$16 USD (1일 이내)
(0 리뷰)
0.0
Dakurdrizzy

I can work on Taylors Series, Cauchy's Integral, Power Series, etc. I can also use the complex analog method in solving problems relating to this. Relevant Skills and Experience I am a mathematician; I studied math in 기타

$25 USD (3일 이내)
(0 리뷰)
0.0