🎴 Flashcard Mode

Test 1 - Programming and Data Structure | Computer Science

Card1 / 28
Mastered0
Review0
QuestionClick to flip

Consider the following C function.
float f,(float x, int y) {
float p, s; int i;
for (s=1,p=1,i=1; i

AnswerClick to flip back
A
ex
💡 Explanation:

The function f() is implementation of Taylor’s Series to calculates ex
ex = 1 + x + x2/2! + x3/3! + ---
More is the value of y more precise value of ex will be returned by f()
  

Change Mode