Dev-C++ 4.9.92
Plik Edycja Szukaj Widok Projekt Uruchom Odpluskwiacz Narzędzia CVS Okno Pomoc
0® Dl SI |
a | ||
11 ■ ■ 11 II ■ ■ ii V |
f © |
2] Nowy <£ Wstaw <£>] Przełącz [0] Przejdź Do | |
31 3 | |||
Projekt Klasy Odplus * |
► |
main.cpp |
tinclude "iostream.ta" tinclude <rr.ath.h> tinclude <dos.h> tinclude <conio.h>
int N;
//obliczenie kroku
double H(double a,double b, int n)
{
return (b-a)/(double)n;
//funkcja f(x) z treści zadania double F(double x)
{
return 1.0/(1.0 + x*x);
}
//iloraz różnicowy dwóch zmiennych double f(double xl,double x2)
{
return (F(x2)-F(xl))/(x2-xl);
//splajn
double q(double *xprim,double *wsp,double x)
{
int i;
for(i=0;i<N;i++)
if (x>=xprim[i] && x<xprim[i+l]) break;
□□ Kompilator | ^ Zasoby [£Q] Log kompilacji Odpluskwiacz | [§> Wyniki poszukiwań
podaj podaj podaj krok X -10 |
a: -10 b: 10 n: 100 = 0.2 |
f<x> 0.00990099 |
q<x> b|{|d 0.00797412 |
0.00192687 |
-9.9 |
0.0101 |
0.0103826 |
0.000282588 | |
-9.8 |
0.010305 |
0.010305 |
0 | |
-9.7 |
0.0105164 |
0.0104517 |
6.46052e-005 | |
-9.6 |
0.0107342 |
0.0107342 |
3.46945e-018 | |
-9.5 |
0.0109589 |
0.0109525 |
6.42942e-006 | |
-9.4 |
0.0111907 |
0.0111907 |
0 | |
-9.3 |
0.0114299 |
0.0114119 |
1.79572e-005 | |
-9.2 |
0.0116768 |
0.0116768 |
3.46945e-018 | |
-9.1 |
0.0119318 |
0.0119141 |
1.76994e-005 | |
-9 |
0.0121951 |
0.0121951 |
1.73472e-018 | |
-8.9 |
0.0124673 |
0.0124476 |
1.96613e-005 | |
-8.8 |
0.0127486 |
0.0127486 |
1.73472e-018 | |
-8.7 |
0.0130395 |
0.013018 |
2.14677e-005 | |
-8.6 |
0.0133404 |
0.0133404 |
5.20417e-018 | |
-8.5 |
0.0136519 |
0.0136283 |
2.35584e-005 | |
-8.4 |
0.0139743 |
0.0139743 |
1.73472e-018 | |
-8.3 |
0.0143082 |
0.0142823 |
2.58959e-005 | |
-8.2 |
0.0146542 |
0.0146542 |
3.46945e-018 | |
-8.1 |
0.0150128 |
0.0149842 |
2.8531e-005 | |
-8 |
0.0153846 |
0.0153846 |
3.46945e-018 | |
-7.9 |
0.0157704 |
0.0157389 |
3.15076e-005 | |
-7.8 |
0.0161708 |
0.0161708 |
0 | |
-7.7 |
0.0165865 |
0.0165516 |
3.48801e-005 | |
-7.6 |
0.0170184 |
0.0170184 |
3.46945e-018 | |
-7.5 |
0.0174672 |
0.0174285 |
3.8713e-005 | |
-7.4 |
0.017934 |
0.017934 |
3.46945e-018 | |
-7.3 |
0.0184196 |
0.0184604 |
4.08061e-005 | |
-7.2 |
0.0189251 |
0.0189251 |
0 | |
-7.1 |
0.0194515 |
0.0194034 |
4.8083e-005 | |
-7 |
0.02 |
0.02 3.46945e |
-018 | |
-6.9 |
0.0205719 |
0.0205181 |
5.38235e-005 | |
-6.8 |
0.0211685 |
0.0211685 |
3.46945e-018 | |
-6.7 |
0.0217912 |
0.0217308 |
6.04389e-005 | |
-6.6 |
0.0224417 |
0.0224417 |
3.46945e-018 | |
-6.5 |
0.0231214 |
0.0230533 |
6.80928e-005 | |
-6.4 |
0.0238322 |
0.0238322 |
6.93889e-018 | |
-6.3 |
0.0245761 |
0.0246484 |
7.2324e-005 | |
-6.2 |
0.025355 |
0.025355 |
6.93889e-018 | |
-6.1 |
0.0261712 |
0.0260838 |
8.73611e-005 | |
-6 |
0.027027 |
0.027027 |
3.46945e-018 | |
-5.9 |
0.0279252 |
0.0278256 |
9.95244e-005 | |
-5.8 |
0.0288684 |
0.0288684 |
6.93889e-018 | |
-5.7 |
0.0298597 |
0.0297458 |
0.000113853 | |
-5.6 |
0.0309023 |
0.0309023 |
6.93889e-018 | |
-5.5 |
0.032 |
0.0318692 |
0.000130818 | |
-5.4 |
0.0331565 |
0.0331565 |
6.93889e-018 | |
-5.3 |
0.0343761 |
0.0345164 |
0.000140346 | |
-5.2 |
0.0356633 |
0.0356633 |
6.93889e-018 | |
-5.1 |
0.0370233 |
0.0371857 |
0.000162401 | |
-5 |
0.0384615 |
0.0384615 |
6.93889e-018 | |
-4.9 |
0.039984 |
0.0397797 |
0.000204332 | |
-4.8 |
0.0415973 |
0.0415973 |
6.93889e-018 | |
-4.7 |
0.0433088 |
0.0430691 |
0.000239655 | |
-4.6 |
0.0451264 |
0.0451264 |
6.93889e-018 | |
-4.5 |
0.0470588 |
0.046776 |
0.000282777 |
23:49