@PointsEqual
ниначмуроФ
837 / 521 / 33
Регистрация: 12.10.2009
Сообщений: 1,915
|
27.01.2010, 22:34
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| #include <stdio.h>
#include <math.h>
#define e 2.718281828
#include <iostream>
#include <conio.h>
float f(float x);
int main(int argc, char* argv[])
{
float a,b;
printf("%f",1/2*pow(f(a),3)-f(b));
getch();
return 0;
}
float f(float x)
{
float h;
h=pow(x*e,(x*x)/4);
return h;
} |
|
Добавлено через 2 минуты

Сообщение от mikhail2704
C | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #include <stdio.h>
#include <math.h>
#define e 2.718281828
float f(float x);
int main(int argc, char* argv[])
{
float a,b;
printf("%f",1/2*pow(f(a),3)-f(b));
return 0;
}
float f(float x)
{
f=pow(x*e,x*x/4)
return f;
} |
|
f=pow(x*e,x*x/4) разве можно так? имени функции присваивать значение
0
|