X 1 Ans 0
X 1 Ans 0
X 1 Ans 0
f(x) = x10 1
>> syms x
>> syms x
f=(x.^10) - 1;
ezplot(f,[0,1.3]),grid on
en [0, 1.3]
3. f(x) = -5 10x + x3
>> syms x
f=-5 -10*x +x.^3;
ezplot(f),grid on
en [2.9, 3.1]
format long
x=-0.6;
x=x-eval(f)/eval(diff(f))
x = -0.512107623318386
>> x=x-eval(f)/eval(diff(f))
x = -0.513543182886945
>> x=x-eval(f)/eval(diff(f))
x = -0.513543527020135
>> x=x-eval(f)/eval(diff(f))
x = -0.513543527020155
>> x=x-eval(f)/eval(diff(f))
x = r2 = -0.513543527020155
>> eval(f)
ans =
-8.881784197001252e-16
Hallamos la raz r3:
>>syms x
f=-5 -10*x +x.^3;
ezplot(f,[2,4]),grid on
format long
x=3.2;
x=x-eval(f)/eval(diff(f))
x =
3.404247104247104
>> x=xeval(f)/eval(diff(f))
x =
3.387732886452394
>> x=xeval(f)/eval(diff(f))
x =
3.387619063865512
>> x=x-eval(f)/eval(diff(f))
x =
3.387619058475416
>> x=x-eval(f)/eval(diff(f))
x = r3 =
3.387619058475416
>> eval(f)
ans =
0
4. f(x) = lnx 0.5
en [1, 2]
>>syms x
f= log(x)-0.5
;
ezplot(f,[1,2]),grid on
format long
x=1.6;
x=x-eval(f)/eval(diff(f))
x =
1.647994193206823
>> x=x-eval(f)/eval(diff(f))
x =
1.648721110357863
>> x=x-eval(f)/eval(diff(f))
x =
1.648721270700120
>> x=x-eval(f)/eval(diff(f))
x =
1.648721270700128
>> x=x-eval(f)/eval(diff(f))
x =
1.648721270700128
>> eval(f)
ans =
0
5. f(x) = x3 100
>>syms x
f= x.^3 -0.5
;
ezplot(f),grid on
format long
x=0.6;
x=x-eval(f)/eval(diff(f))
x =
0.628277719979254
>> x=x-eval(f)/eval(diff(f))
x =
0.628318529054776
>> x=x-eval(f)/eval(diff(f))
x =
0.628318530717959
>> x=x-eval(f)/eval(diff(f))
x =
0.628318530717959
>> eval(f)
ans =
-1.306668966275903e16
Hallamos la tercera raz r3=[0.75:1]
>>syms x
f= exp(-x)*sin(10*x)
;
ezplot(f,[0.75,1]),grid on
format long
x=0.9;
x=x-eval(f)/eval(diff(f))
x =
0.943274205848656
>> x=x-eval(f)/eval(diff(f))
x =
0.942477144437672
>> x=x-eval(f)/eval(diff(f))
x =
0.942477796076513
>> x=x-eval(f)/eval(diff(f))
x =
0.942477796076938
>> x=x-eval(f)/eval(diff(f))
x =
0.942477796076938
>> eval(f)
ans =
1.431591793916507e-16
Hallamos la cuarta raz r4=[1:1.5]
>>syms x
f= exp(-x)*sin(10*x)
;
ezplot(f,[1,1.5]),grid on
format long
x=1.25;
x=x-eval(f)/eval(diff(f))
x =
1.256602935634054
>> x=x-eval(f)/eval(diff(f))
x =
1.256637060272711
>> x=x-eval(f)/eval(diff(f))
x =
1.256637061435918
>> x=x-eval(f)/eval(diff(f))
x =
1.256637061435917
>> x=x-eval(f)/eval(diff(f))
x =
1.256637061435917
>> eval(f)
ans =
-1.394184665013033e-16
Hallamos la quinta raz r5=[1.5:1.75]
>>syms x
f= exp(-x)*sin(10*x)
;
ezplot(f,[1.5,1.75]),grid on
format long
x=1.55;
x=x-eval(f)/eval(diff(f))
x =
1.570665342641508
>> x=x-eval(f)/eval(diff(f))
x =
1.570796309715185
>> x=x-eval(f)/eval(diff(f))
x =
1.570796326794896
>> x=x-eval(f)/eval(diff(f))
x =
1.570796326794897
>> x=x-eval(f)/eval(diff(f))
x =
1.570796326794897
>> eval(f)
ans =
1.272895288930342e-16
Hallamos la sexta raz r6=[1.75:2]
>>syms x
f= exp(-x)*sin(10*x)
;
ezplot(f,[1.75,2]),grid on
format long
x=1.85;
x=x-eval(f)/eval(diff(f))
x =
1.885170479576553
>> x=x-eval(f)/eval(diff(f))
x =
1.884955545636445
>> x=x-eval(f)/eval(diff(f))
x =
1.884955592153874
>> x=x-eval(f)/eval(diff(f))
x =
1.884955592153876
>> x=x-eval(f)/eval(diff(f))
x =
1.884955592153876
>> eval(f)
ans =
-1.115671373349438e-16
Hallamos la sptima raz r7=[2:2.5]
>>syms x
f= exp(-x)*sin(10*x)
;
ezplot(f,[2,2.5]),grid on
format long
x=2.15;
x=x-eval(f)/eval(diff(f))
x =
2.200770886030950
>> x=x-eval(f)/eval(diff(f))
x =
2.199111958629228
>> x=x-eval(f)/eval(diff(f))
x =
2.199114857504453
>> x=x-eval(f)/eval(diff(f))
x =
2.199114857512855
>> x=x-eval(f)/eval(diff(f))
x =
2.199114857512855
>> eval(f)
ans =
9.507042689904291e-17
7. f(x) = xex
syms x
f= x*exp(x) - pi
;
ezplot(f,[-10,10]),grid on
8. f(x) = (1-0.6x)/x
en [1.5, 2]
syms x
f=(1-0.6*x)/x ;
ezplot(f,[1.5,2]), grid on
format long
x=1.65;
x=x-eval(f)/eval(diff(f))
x =
1.666500000000000
>> x=x-eval(f)/eval(diff(f))
x =
1.666666650000000
>> x=x-eval(f)/eval(diff(f))
x =
1.666666666666667
>> x=x-eval(f)/eval(diff(f))
x =
1.666666666666667
>> eval(f)
ans =
0
9. f(x) = e-X x
syms x
en [0, 1]
f=exp(-x)-x;
ezplot(f,[0,1]), grid on
format long
x=0.5;
x=x-eval(f)/eval(diff(f))
x =
0.566311003197218
>> x=x-eval(f)/eval(diff(f))
x =
0.567143165034862
>> x=x-eval(f)/eval(diff(f))
x =
0.567143290409781
>> x=x-eval(f)/eval(diff(f))
x =
0.567143290409784
>> x=x-eval(f)/eval(diff(f))
x =
0.567143290409784
>> eval(f)
ans = -1.110223024625157e-16
format long
x=-2;
x=x-eval(f)/eval(diff(f))
x = -1.900995594203909
>> x=x-eval(f)/eval(diff(f))
x = -1.895511645379595
>> x=x-eval(f)/eval(diff(f))
x = -1.895494267208713
>> x=x-eval(f)/eval(diff(f))
x = -1.895494267033981
>> x=x-eval(f)/eval(diff(f))
x = -1.895494267033981
>> eval(f)
ans =
0
Hallamos la segunda raz r2=[-1.5:0.5]
syms x
f=0.5*x-sin(x);
ezplot(f,[-1.5,0.5]), grid on
format long
x=-0.5;
x=x-eval(f)/eval(diff(f))
x =
0.107616881075176
>> x=x-eval(f)/eval(diff(f))
x =
-8.396553633925191e-04
>> x=x-eval(f)/eval(diff(f))
x =
3.946500987334414e-10
>> x=x-eval(f)/eval(diff(f))
x =
0
>> x=x-eval(f)/eval(diff(f))
x =
0
>> eval(f)
ans =
0
Hallamos la tercera raz r3=[0.5:2.5]
syms x
f=0.5*x-sin(x);
ezplot(f,[0.5,2.5]), grid on
format long
x=1.5;
x=x-eval(f)/eval(diff(f)), grid on
x =
2.076558200630435
>> x=x-eval(f)/eval(diff(f)), grid
x =
1.910506615659081
>> x=x-eval(f)/eval(diff(f)), grid
x =
1.895622002987846
>> x=x-eval(f)/eval(diff(f)), grid
x =
1.895494276472771
>> x=x-eval(f)/eval(diff(f)), grid
x =
1.895494267033981
>> x=x-eval(f)/eval(diff(f)), grid
x =
1.895494267033981
>> eval(f)
ans =
0
11.
on
on
on
on
on
syms x
f=x.^3-6*x.^2+11*x-6;
ezplot(f,[2.5,3.6]), grid on
format long
x=2.8;
x=x-eval(f)/eval(diff(f))
x =
3.113043478260869
>> x=x-eval(f)/eval(diff(f))
x =
3.015175458447745
>> x=x-eval(f)/eval(diff(f))
x =
3.000333632313382
>> x=x-eval(f)/eval(diff(f))
x =
3.000000166835906
>> x=x-eval(f)/eval(diff(f))
x =
3.000000000000040
>> x=x-eval(f)/eval(diff(f))
x =
3.000000000000004
>> x=x-eval(f)/eval(diff(f))
x =
3.000000000000004
>> eval(f)
ans =
0
f(x) = x2ex-1
12.
syms x
f=x.^2*exp(x)-1;
ezplot(f), grid on
syms x
f=x.^2*exp(x)-1;
ezplot(f,[0,1]), grid on
format long
x=0.6;
x=x-eval(f)/eval(diff(f))
x =
0.721033100060273
>> x=x-eval(f)/eval(diff(f))
x =
0.703887405731362
>> x=x-eval(f)/eval(diff(f))
x =
0.703467668533052
>> x=x-eval(f)/eval(diff(f))
x =
0.703467422498476
>> x=x-eval(f)/eval(diff(f))
x =
0.703467422498392
>> x=x-eval(f)/eval(diff(f))
x =
0.703467422498392
>> eval(f)
ans =
0
f(x) = 4e-xcosx 1
13.
syms x
f=4*exp(-x)*cos(x)-1;
ezplot(f,[-5,4), grid on
format long
x=-1.6;
x=x-eval(f)/eval(diff(f))
x = -1.522554691761213
>> x=x-eval(f)/eval(diff(f))
x = -1.515911047358049
>> x=x-eval(f)/eval(diff(f))
x = -1.515864125134892
>> x=x-eval(f)/eval(diff(f))
x = -1.515864122805010
>> x=x-eval(f)/eval(diff(f))
x = -1.515864122805010
>> eval(f)
ans =
4.440892098500626e16
Hallamos la tercera raz
syms x
f=4*exp(-x)*cos(x)-1;
ezplot(f,[0,2]), grid on
r3=[0:2]
format long
x=0.8;
x=x-eval(f)/eval(diff(f))
x =
0.899232846801124
>> x=x-eval(f)/eval(diff(f))
x =
0.904771029184748
>> x=x-eval(f)/eval(diff(f))
x =
0.904788217707575
>> x=x-eval(f)/eval(diff(f))
x =
0.904788217873019
>> x=x-eval(f)/eval(diff(f))
x =
0.904788217873019
>> eval(f)
ans =
0
f(x) = x3 - 2x -1
14.
syms x
f=x.^3-2*x-1;
ezplot(f,[1,2]), grid on
format long
x=1.6;
x=x-eval(f)/eval(diff(f))
x =
1.618309859154929
>> x=x-eval(f)/eval(diff(f))
x =
1.618034051832489
>> x=x-eval(f)/eval(diff(f))
x =
1.618033988749898
>> x=x-eval(f)/eval(diff(f))
x =
1.618033988749895
>> x=x-eval(f)/eval(diff(f))
x =
1.618033988749895
>> eval(f)
ans =
0
15.
en [1, 2]
syms x
f=2*exp(-x)-sin(x);
ezplot(f), grid on
syms x
f=2*exp(-x)-sin(x);
ezplot(f,[-1,2]), grid on
format long
x=0.5;
x=x-eval(f)/eval(diff(f))
x =
0.850913796164743
>> x=x-eval(f)/eval(diff(f))
x =
0.918423762301636
>> x=x-eval(f)/eval(diff(f))
x =
0.921020716661709
>> x=x-eval(f)/eval(diff(f))
x =
0.921024549698274
>> x=x-eval(f)/eval(diff(f))
x =
0.921024549706623
>> x=x-eval(f)/eval(diff(f))
x =
0.921024549706623
>> eval(f)
ans =
0
16.
f(x) = x2
syms x
f=x.^2-exp(-x);
ezplot(f), grid on
- e-x
syms x
f=x.^2-exp(-x);
ezplot(f,[-2,2]), grid on
format long
x=0.5;
x=x-eval(f)/eval(diff(f))
x =
0.721925835997682
>> x=x-eval(f)/eval(diff(f))
x =
0.703600833868158
>> x=x-eval(f)/eval(diff(f))
x =
0.703467429540982
>> x=x-eval(f)/eval(diff(f))
x =
0.703467422498392
>> x=x-eval(f)/eval(diff(f))
x =
0.703467422498392
>> eval(f)
ans =
0
f(x) = x2 + senx
17.
syms x
f=x.^2+sin(x);
ezplot(f), grid on
syms x
f=x.^2+sin(x);
ezplot(f,[-2,1]), grid on
En la grfica se observa dos races reales.
Hallamos la primera raz:
format long
x=-1;
x=x-eval(f)/eval(diff(f))
x = -0.891395995328754
>> x=x-eval(f)/eval(diff(f))
x = -0.876984844787744
>> x=x-eval(f)/eval(diff(f))
x = -0.876726298481822
>> x=x-eval(f)/eval(diff(f))
x = -0.876726215395071
>> x=x-eval(f)/eval(diff(f))
x = -0.876726215395063
>> x=x-eval(f)/eval(diff(f))
x = -0.876726215395062
>> x=x-eval(f)/eval(diff(f))
x = -0.876726215395062
>> eval(f)
ans =
0
Hallamos la segunda raz:
format long
x=0.5;
x=x-eval(f)/eval(diff(f))
x =
0.111508141687358
>> x=x-eval(f)/eval(diff(f))
x =
0.009839264929663
>> x=x-eval(f)/eval(diff(f))
x =
9.463590599615747e-05
>> x=x-eval(f)/eval(diff(f))
x =
8.953977489957379e-09
>> x=x-eval(f)/eval(diff(f))
x =
8.017370993937131e-17
>> x=x-eval(f)/eval(diff(f))
x =
0
>> x=x-eval(f)/eval(diff(f))
x =
0
>> eval(f)
ans =
0
18.
en [0.1, 0.5]
syms x
f=log(x.^2+1)-exp(x/2)*cos(pi*x);
ezplot(f,[0.1,0.5]), grid on
format long
x=0.4;
x=x-eval(f)/eval(diff(f))
x =
0.455180362531082
>> x=x-eval(f)/eval(diff(f))
x =
0.452536229349872
>> x=x-eval(f)/eval(diff(f))
x =
0.452531070466943
>> x=x-eval(f)/eval(diff(f))
x =
0.452531070447121
>> x=x-eval(f)/eval(diff(f))
x =
0.452531070447121
>> eval(f)
ans =
-5.551115123125783e-17
19.
syms x
f=7*sin(x)*exp(-x)-1;
ezplot(f,[-10,10]), grid on
f=7*sin(x)*exp(-x)-1;
ezplot(f,[-10,-8]), grid on
format long
x=-9.6;
x=x-eval(f)/eval(diff(f))
x = -9.449598874663201
>> x=x-eval(f)/eval(diff(f))
x = -9.425385239652121
>> x=x-eval(f)/eval(diff(f))
x = -9.424789843771860
>> x=x-eval(f)/eval(diff(f))
x = -9.424789489139112
>> x=x-eval(f)/eval(diff(f))
x = -9.424789489138986
>> x=x-eval(f)/eval(diff(f))
x = -9.424789489138986
>> eval(f)
ans =
-8.627765168967017e-12
Hallamos la segunda raz r2=[-7:-6]
syms x
f=7*sin(x)*exp(-x)-1;
ezplot(f,[-7,-6]), grid on
format long
x=-6.4;
x=x-eval(f)/eval(diff(f))
x = -6.294761666158864
>> x=x-eval(f)/eval(diff(f))
x = -6.283056573734465
>> x=x-eval(f)/eval(diff(f))
x = -6.282918477521982
>> x=x-eval(f)/eval(diff(f))
x = -6.282918458444573
>> x=x-eval(f)/eval(diff(f))
x = -6.282918458444572
>> x=x-eval(f)/eval(diff(f))
x = -6.282918458444572
>> eval(f)
ans =
9.712231019420869e13
Hallamos la tercera raz r3=[-4:2]
syms x
f=7*sin(x)*exp(-x)-1;
ezplot(f,[-4,2]), grid on
format long
x=-3;
x=x-eval(f)/eval(diff(f))
x = -3.174622747702640
>> x=x-eval(f)/eval(diff(f))
x = -3.148422448508756
>> x=x-eval(f)/eval(diff(f))
x = -3.147728825157107
>> x=x-eval(f)/eval(diff(f))
x = -3.147728346758219
>> x=x-eval(f)/eval(diff(f))
x = -3.147728346757992
>> x=x-eval(f)/eval(diff(f))
x = -3.147728346757992
>> eval(f)
ans =
2.842170943040401e-14
En la grfica anterior se observan ms races para ello
graficamos en intervalo mayor a 0.
syms x
f=7*sin(x)*exp(-x)-1;
ezplot(f,[0,10]), grid on
f=7*sin(x)*exp(-x)-1;
ezplot(f,[0,1]), grid on
format long
x=0.1;
x=x-eval(f)/eval(diff(f))
x =
0.164845889085435
>> x=x-eval(f)/eval(diff(f))
x =
0.170145934045092
>> x=x-eval(f)/eval(diff(f))
x =
0.170179992353137
>> x=x-eval(f)/eval(diff(f))
x =
0.170179993753835
>> x=x-eval(f)/eval(diff(f))
x =
0.170179993753835
>> eval(f)
ans =
0
Hallamos la quinta raz r5=[1:2]
syms x
f=7*sin(x)*exp(-x)-1;
ezplot(f,[1,2]), grid on
format long
x=1.8;
x=x-eval(f)/eval(diff(f))
x =
1.891263730789386
>> x=x-eval(f)/eval(diff(f))
x =
1.893058225261318
>> x=x-eval(f)/eval(diff(f))
x =
1.893059029415160
>> x=x-eval(f)/eval(diff(f))
x =
1.893059029415322
>> x=x-eval(f)/eval(diff(f))
x =
1.893059029415322
>> eval(f)
ans =
2.220446049250313e-16
f(x) = xlogx 10
20.
syms x
f=x*log10(x)-10;
ezplot(f,[5,15]), grid on
format long
x=9;
x=x-eval(f)/eval(diff(f))
x = 10.016766153043564
>> x=x-eval(f)/eval(diff(f))
x = 10.000004248909809
>> x=x-eval(f)/eval(diff(f))
x = 10.000000000000274
>> x=x-eval(f)/eval(diff(f))
x = 10.000000000000002
>> x=x-eval(f)/eval(diff(f))
x =
10
>> x=x-eval(f)/eval(diff(f))
x =
10
>> eval(f)
ans =
21.
format long
x=2;
x=x-eval(f)/eval(diff(f))
x =
1.374441118892017
>> x=x-eval(f)/eval(diff(f))
x =
1.212329787671393
>> x=x-eval(f)/eval(diff(f))
x =
1.203226926364154
>> x=x-eval(f)/eval(diff(f))
x =
1.203200013984596
>> x=x-eval(f)/eval(diff(f))
x =
1.203200013750272
>> x=x-eval(f)/eval(diff(f))
x = 1.203200013750272
>> eval(f)
ans =
0
22.
f(x) = 2x - 1/3
syms x
f=2*x-1/3;
ezplot(f), grid on
format long
x=1;
x=x-eval(f)/eval(diff(f))
x =
0.166666666666667
>> x=x-eval(f)/eval(diff(f))
x =
0.166666666666667
>> eval(f)
ans =
0
23.
f(x) = tanx/x^2
syms x
f=tan(x)/(x.^2);
ezplot(f,[-8,-6]), grid on
format long
x=-6.4;
x=x-eval(f)/eval(diff(f))
x = -6.279900685691354
>> x=x-eval(f)/eval(diff(f))
x = -6.283181851236622
>> x=x-eval(f)/eval(diff(f))
x = -6.283185307175785
>> x=x-eval(f)/eval(diff(f))
x = -6.283185307179586
>> x=x-eval(f)/eval(diff(f))
x = -6.283185307179586
>> eval(f)
ans =
6.204133161670506e-18
24.
f(x) = (1-x)senx 1
syms x
f=((1-x)*sin(x))-1;
ezplot(f,[0,10]), grid on
Hallamos primera raiz:
format long
x=3;
x=x-eval(f)/eval(diff(f))
x =
3.697299707417833
>> x=x-eval(f)/eval(diff(f))
x =
3.547264831874893
>> x=x-eval(f)/eval(diff(f))
x =
3.545347719415548
>> x=x-eval(f)/eval(diff(f))
x =
3.545347158292010
>> x=x-eval(f)/eval(diff(f))
x =
3.545347158291962
>> x=x-eval(f)/eval(diff(f))
x =
3.545347158291962
>> eval(f)
ans =
4.440892098500626e-16
Hallamos segunda raiz:
format long
x=6;
x=x-eval(f)/eval(diff(f))
x =
6.087821103007618
>> x=x-eval(f)/eval(diff(f))
x =
6.085250133741525
>> x=x-eval(f)/eval(diff(f))
x =
6.085248095703525
>> x=x-eval(f)/eval(diff(f))
x =
6.085248095702242
>> x=x-eval(f)/eval(diff(f))
x =
6.085248095702242
>> eval(f)
ans =
-1.665334536937735e-15
Hallamos tercera raiz:
format long
x=9;
x=x-eval(f)/eval(diff(f))
x =
9.624835773337424
>> x=x-eval(f)/eval(diff(f))
x =
9.542309539061442
>> x=x-eval(f)/eval(diff(f))
x =
9.542114059263900
>> x=x-eval(f)/eval(diff(f))
x =
9.542114057075475
>> x=x-eval(f)/eval(diff(f))
x =
9.542114057075475
>> eval(f)
ans =
1.776356839400251e-15
25.
f(x) = x2lnx-2x-1
en [2.5, 2.6]
syms x
f=(x.^2)*log(x)-2*x-1;
ezplot(f,[2.5,2.6]), grid on
format long
x=2.55;
x=x-eval(f)/eval(diff(f))
x =
2.552451680192365
>> x=x-eval(f)/eval(diff(f))
x =
2.552448935706839
>> x=x-eval(f)/eval(diff(f))
x =
2.552448935703399
>> x=x-eval(f)/eval(diff(f))
x =
2.552448935703399
>> eval(f)
ans =
-8.881784197001252e-16