Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Godzio 8 */
- #include <stdio.h>
- #include <math.h>
- void show_u(int n, double a) {
- double u = sqrt(n + a*sqrt(n) + 1) - sqrt(n);
- printf("dla a = %lf: u(%d) = %lf\n", a, n, u);
- }
- int main (void) {
- int infinity = 999999999;
- double a;
- for (a=0.5; a<=4; a *= 2)
- show_u(infinity, a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment