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,748 of 10,432   
   Nasser M. Abbasi to Nasser M. Abbasi   
   Re: monolithic vs. Hybrid CAS systems   
   12 Jan 18 21:07:37   
   
   From: nma@12000.org   
      
   On 1/12/2018 5:27 PM, Nasser M. Abbasi wrote:   
   >   
      
   >   
   > For example, in sympy, if user wants to evaluate   
   > exp(expression) and expression is symbolic, then   
   > user needs to call the exp() in the SciPy package   
   > and not the exp() in the SymPy package.   
   >   
      
   opps,  You see, I mixed it up above. I meant the otherway   
   around. If expression is symbolic then   
   Sympy.exp() is the one to call, otherwise, it is   
   SciPy.exp().   
      
   >>> from sympy import symbols, Rational   
   >>> from sympy.functions import exp as sympyExp   
   >>> x=Rational(1/2)   
   >>> sympyExp(x)   
      
        exp(1/2)   
      
   >>> from scipy import *   
   >>> exp(x)   
      
   Traceback (most recent call last):   
      File "", line 1, in    
   AttributeError: 'Half' object has no attribute 'exp'   
      
   --Nasser   
      
      
      
   --Nasser   
      
   --- 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