Repeated invocation of the function!
/*
===================================================================================
Title: w= ((1-a)/(1+a+a*a)) * (((1-b)/(1+B+B*B) + ((1-c)/(1+C+C*C)) * ((1-C)/(1+C+C*C)),
a=7.2,b=6.25,c=10.8, Beg W?
===================================================================================
*/
#include <stdio.h>
float FZ (float x)
{return 1-x;}
float FM (float x)
{return 1+x+x*x;}
Float FS (float x)
{return (FZ (x)/fm (x));}
Float PF (float x)
{return (FZ (x)/fm (x)) * (FZ (x)/fm (x));}
Main ()
{
float a,b,c,w;
printf ("a=");
scanf ("%f", &a);
printf ("b=");
scanf ("%f", &b);
printf ("c=");
scanf ("%f", &c);
W=FS (a) * (FS (b) +PF (c));
printf ("w=%.6f\n", W);
}
/*
===================================================================================
Evaluation:
This program is heavy in mastering the function of repeated calls! Write "numerator, denominator, fraction, square" four functions, call when the score is evaluated
Numerator denominator, which is called fraction when squared!
===================================================================================
*/
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
C language Function call 10-multiple invocations of a repeating function