Derivative of symbolic funtion at a specific value
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ahmed Elkady
 el 22 de Sept. de 2012
  
    
    
    
    
    Comentada: Mohammad Tauquir Iqbal
 el 10 de Jul. de 2018
            I have a symbolic function of variable "x"
Function = @(x) 8-4.5*(x-sin (x));
say I need to get the derivative at x=5
what should i do?
0 comentarios
Respuesta aceptada
  Azzi Abdelmalek
      
      
 el 22 de Sept. de 2012
        
      Editada: Azzi Abdelmalek
      
      
 el 22 de Sept. de 2012
  
      Function = @(x) 8-4.5*(x-sin (x)); 
Function(5)
%derivative
 Function_d = @(x) diff('8-4.5*(x-sin (x))');
 x=5; eval(Function_d(1))
4 comentarios
  Azzi Abdelmalek
      
      
 el 22 de Sept. de 2012
				
      Editada: Azzi Abdelmalek
      
      
 el 22 de Sept. de 2012
  
			try this
Function_d = @(x) diff('8-4.5*(x-sin (x))');
x=5; eval(Function_d(1))
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



