How can I get the exact result with this code?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Cesar Cardenas
 el 20 de Feb. de 2023
  
    
    
    
    
    Comentada: John D'Errico
      
      
 el 20 de Feb. de 2023
            Hi, I'm trying to integrate the expression shown. Just wondering how I could get the same exact result? or what am I doing wrong? any help will be greatly appreciated. Thanks
syms x f(x)
L = 1;
f(x) = 5*(x.^0.33);
h = (1/L)*int(f(x), x, 0, L)

1 comentario
  John D'Errico
      
      
 el 20 de Feb. de 2023
				Even disregarding the sign error in the exponent (as correctly pointed out in the answer), 0.33 is not equal to 1/3.
Respuesta aceptada
  Dyuman Joshi
      
      
 el 20 de Feb. de 2023
        The power to x was incorrect
syms f(x)
L = 1;
f(x) = 5*(x.^(-1/3));
h = (1/L)*int(f(x), 0, L)
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Calculus en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!