Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Find integer values of functions of integer values
#include <stdio.h> #include <math.h> // mod'd from R. E.'s code double pow(double x, double y); int main(void) { double lower = -1000; double upper = 1000; double y; for (double x = lower; x <= upper; x+=1) { if ((pow(x,2) - 8) == 0) continue; y = (pow(x,3) -13*x + 6) / (pow(x,2)-8); if (y == (int)y) printf("\n%d/%d", (int)x,(int)y); } printf("\n"); return 0; }
run
|
edit
|
history
|
help
0
inicializace struktury
BPC UDP pr3 cv10 final
Check Expression with Stack
TStack_list
Herout (67) - 1
scitani matic
pokus
BPC UDP pr3 cv10 final
Eukleides
funkce vzdálenost