home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.math.symbolic      Symbolic algebra discussion      10,432 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,433 of 10,432   
   Rosario19 to All   
   Re: [Axiom] define a derivate of one fun   
   22 May 17 19:04:33   
   
   From: Ros@invalid.invalid   
      
   On Mon, 22 May 2017 18:10:10 +0200, Rosario19    
   wrote:   
      
   >In Axiom is it possible define one derivative function inside one   
   >function?   
   >   
   >as example   
   >   
   >g(f)==( h(y:Float):Float==numeric(eval(D(f(x),x),x,y));h(20))   
   >   
   >g(x+->x^2) or g(x^2) not give right return...   
      
   i find one way for doing that...   
      
   (11) ->   
   w(h)==(p:=compiledFunction(eval(D(h(x),x),x,z),z)$MakeUnaryCompi   
   edFunction(Expression   
   INT,Float,Float);p(10))   
      
   Type: Void   
   (12) -> w(x+->x^2)   
      
      
      AXIOM will attempt to step through and interpret the code.   
      Compiling function %B with type Float -> Float   
      
      (12)  20.0   
      
   Type: Float   
   (13) -> w(x+->sin(x))   
      Compiling function %C with type Float -> Float   
      
      (13)  - 0.8390715290 7645245226   
      
   Type: Float   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca