Question and Answers Forum

All Questions      Topic List

None Questions

Previous in All Question      Next in All Question      

Previous in None      Next in None      

Question Number 175785 by otchereabdullai@gmail.com last updated on 06/Sep/22

Commented by Ar Brandon last updated on 07/Sep/22

#include <stdio.h> #include <math.h> int main(void) { double fx, gx, xn, x_m; printf("Enter initial value:"); scanf("%lf", &xn); for(int i=0; i<100; i++) { fx = pow(xn, log(2)/log(3))-sqrt(xn)-1; gx = log(2)/log(3)*pow(xn,log(2)/log(3)-1) -0.5/sqrt(xn); x_m = xn - fx / gx; xn = x_m; } printf("x ≈ %.2f\n", xn); return 0; }

Commented by Ar Brandon last updated on 07/Sep/22

x=9  Newton-Raphson′s method with initial   value x_0 =1 and 100 repetitions.

x=9NewtonRaphsonsmethodwithinitialvaluex0=1and100repetitions.

Commented by Frix last updated on 07/Sep/22

this is again no math example but a magic  trick example. obviously (at least for me)  x=9. but no exact method is possible. or  else try  x^(log_2  3) =(√x)+1

thisisagainnomathexamplebutamagictrickexample.obviously(atleastforme)x=9.butnoexactmethodispossible.orelsetryxlog23=x+1

Answered by Ar Brandon last updated on 07/Sep/22

Answered by LordKazuma last updated on 07/Sep/22

x^(log_3 2)  = (√x)  + 1  let x = 3^t  ⇒ (√x) = 3^(t/2)   3^(t ∙ log_3 2)  = 3^(t/2)  + 1  3^(log_3 2^t )  = 3^(t/2)  + 1  2^t  = 3^(t/2)  + 1  the value of t that statisfies this equation only  t = 2 ⇒ x = 3^t  ⇒ x = 9

xlog32=x+1letx=3tx=3t23tlog32=3t2+13log32t=3t2+12t=3t2+1thevalueoftthatstatisfiesthisequationonlyt=2x=3tx=9

Commented by LordKazuma last updated on 07/Sep/22

Terms of Service

Privacy Policy

Contact: info@tinkutara.com