Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- double reAndIm(double z, double fi, double *b)
- {
- *b = z * sin(fi);
- return (z * cos(fi));
- }
- int main()
- {
- double z, fi, a, b;
- printf("Podaj |z|:\n");
- scanf("%lf", &z);
- printf("Podaj fi:\n");
- scanf("%lf", &fi);
- a = reAndIm(z, fi, &b);
- printf("z = %lf + %lfi\n", a, b);
- printf("z = %lf * e^i*%lf", z, fi);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement