search for: sympy

Displaying 16 results from an estimated 16 matches for "sympy".

Did you mean: simpy
2012 Apr 14
2
some questions about sympy (that is, rSymPy)
I am experimenting with rSymPy, and it seems to work nice. However, I dislike the need to wrap all sympy expressions within quotes, it leads to ugly calls like library(rSymPy) Var("x,y,z") sympy("(x+y)**2") and so on. Inspired by the function cq from mvbutiles package: library(mvbutils) > cq function (....
2009 Apr 22
5
large factorials
I am working on a project that requires me to do very large factorial evaluations. On R the built in factorial function and the one I created both are not able to do factorials over 170. The first gives an error and mine return Inf. Is there a way to have R do these larger calculations (the calculator in accessories can do 10000 factorial and Maple can do even larger) -- View this message in
2013 Sep 12
1
problem with rJython and modules
Dear R People: I have been experimenting with rPython, rSymPy, and rJython. Here is my latest snag: > library(rJython) Loading required package: rJava Loading required package: rjson > library(rSymPy) > rJython <- rJython() > x <- "x" > y <- "y" > rJython$exec("from sympy import *") Error in .jcall(&q...
2009 May 05
8
limits
Hey, what is the R function for the mathematical limit ? e.g. to calculate and return the amount that the expression X^2 +X +2 approach as X approach 2 (X-> 2) thanks hassan [[alternative HTML version deleted]]
2013 Sep 10
0
question about rSymPy and integration
Dear R Users: I would like to use symbolic integration from rSymPy and pass in the actual function. So I have > sympy("x=Symbol('x')") and if I use > sympy("integrate(cos(x),x)") it works fine. But what I want to do is something like > y <- "cos(x)" > sympy("integrate(y,x)") "cos(x)*x" H...
2009 May 05
1
yacas
Hi, as I find problems with yacas package... is there any R function equivalent to the yacas function "Factor" ? the factor function which i found in the R help is not the same. it doesn't factor an algebraic expression...... thanks hassan [[alternative HTML version deleted]]
2009 Jul 28
1
Problem runnin rSymPy
Hi all, I'm having major difficulty using the rSymPy package this week, but I have used it without problems before now. Here is an example of what's happening: > library(rSymPy) Loading required package: rJava > sympy("var('a b c d')") Error in .jcheck() : No running detected. Maybe .jinit() would help. And I have no ide...
2009 Jul 13
1
R in rearranging equations
Hi, can anyone tell me if R can be used to rearrange very complicated equations in terms of one of the variables? I have: dx/dt = a*b*m*y*(1-x)-r*x and, having set: dy/dx = 0, need to rearrange in terms of x. The problem I have is that I don't know how to rearrange equations when the variables are not yet defined (I get messages warning me that x etc can't be found). I'm not sure
2013 Oct 31
1
an rpy2, R cgi type question
...t;subject" value="Graph" /> Graph Function <input type="text" name="func1" <br /> <input type="submit" value="Select Subject" /> </form> Now the radio4.py file: # Import modules for CGI handling import cgi, cgitb from sympy import * import sys from rpy2.robjects.packages import SignatureTranslatedAnonymousPackage as STAP with open("bz2.R","r") as f: string=''.join(f.readlines()) etest = STAP(string,"etest") etest.etest(500) # Create instance of FieldStorage form = cgi.Field...
2009 May 06
2
convert large integers to hex
Hi, I'm wondering if someone has solved the problem of converting very large integers to hex. I know about format.hexmode and as.hexmode, but these rely on integers. The numbers I'm working with are overflowing and losing precision. Here's an example: x <- "6595137340052185552" # stored as character as.integer(x) # warning about inaccurate conversion
2009 May 19
0
Automatic Differentiation for R
...t;ggrothendieck at gmail.com> >>>>> >>>>> on Wed, 15 Apr 2009 09:53:18 -0400 writes: >>>>> GaGr> Not sure if this is sufficient for your needs but R does include symbolic GaGr> differentiation, see ?D, and the Ryacas and rSymPy GaGr> packages interface R to the yacas and sympy computer algebra GaGr> systems (CAS) and those system include symbolic differentiation. No, symbolic differentiation is not enough. Automatic Differentiation (AD) is something much more general (in one way) and much less mathematical...
2013 Nov 28
2
derivar una función
Las dos Enviado desde mi iPhone > El 28/11/2013, a las 18:07, "Carlos J. Gil Bellosta " <cgb en datanalytics.com> escribió: > > ¿Numérica o simbólicamente? > > Un saludo, > > Carlos J. Gil Bellosta > http://www.datanalytics.com > > El día 28 de noviembre de 2013 18:03, jmcontreras <jmcontreras en ugr.es> escribió: >> Hola a todos
2009 Jun 14
3
python bindings to libtheora
...e. For example, it seems to me the standard YCbCr plane that get_frame_array() returns is not so useful, I almost always immediatelly call the conversion method YCbCr2RGB() right after it, so that I can display the image. Btw, here is the motivation why I need that: http://groups.google.com/group/sympy/browse_thread/thread/dce8359b92eef874 I simply wanted to create a video tutorial, but I didn't manage to simply join audio + video together, without loosing quality etc. Neither could others btw., as you can see from the posts (the best thing we can do is something that only works with some pl...
2009 Jul 22
2
Automatic differentiation in R
Hi I recently gave a presentation about Automatic Differentiation (AD) and R at the Eighth Euro AD Workshop in Oxford (17/07/09). The presentation was intended as a general introduction to R and the desire for a generic AD interface for R. During the presentation I emphasised the need and the high level of interest that the R community has in developing such an interface and that input from the
2009 Apr 15
1
Automatic Differentiation for R
In efforts to improve optimization tools for R, one of my interests has been getting automatic differentiation capabilities so that analytic rather than numerical derivatives can be used. They would be helpful in several other areas besides optimization, My timings show factors of the order of 1000s in time improvements by avoiding numerical derivatives in some cases. There has been some work in
2010 Jun 22
0
Processed: submitter 585188, submitter 585189, submitter 585190, submitter 585191, submitter 585192 ...
...ubmitter 585333 ! Bug #585333 [python-swiginac] python-swiginac: Python string exceptions no more allowed in Python 2.6 Changed Bug submitter to 'Sandro Tosi <morph at debian.org>' from 'Sandro Tosi <morph at ravel.debian.org>' > submitter 585334 ! Bug #585334 [python-sympy] python-sympy: Python string exceptions no more allowed in Python 2.6 Changed Bug submitter to 'Sandro Tosi <morph at debian.org>' from 'Sandro Tosi <morph at ravel.debian.org>' > submitter 585335 ! Bug #585335 [python-tp-netlib] python-tp-netlib: Python string except...