Displaying 20 results from an estimated 2000 matches similar to: "yacas"
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 Jun 19
2
Ryacas loads but yacas has an error
Hello yet again, R People:
I was working with Ryacas and yacas last night and all was well.
Now this morning, I keep getting the following:
> a <- Sym("a")
> a
Error in summary.connection(x) : invalid connection
>
When I go to yacas from the command line, it works fine.
Any suggestions, please?
I'm thinking that a port might be open, but here I have:
>
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 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 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
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
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
2006 Nov 23
4
Ryacas and fractions with simultaenously very large numerators and denominators
Dear All
I am doing the following:
> x <- yacas("3/2")
> for (i in 2:400)
+ x <- yacas(paste(x,"*",x))
> x
expression(Inf^1.260864167e+117/Inf^6.304320836e+116)
> Eval(x)
[1] NaN
No luck this way. However, I am successful with
> y <- yacas("(3/2)^400")
> y
expression(7.05507910865533e+190/2.58224987808691e+120)
> Eval(y)
[1]
2012 Dec 05
1
loading & using Ryacas
I'm having trouble loading Ryacas. I've downloaded and extracted Ryacas
0.2-9 (also tried Ryacas ) and yacas 1.0.63, have the latest version of R
and have tried the following (this works for installing other packages):
install.packages("Ryacas")
library(Ryacas)
install.packages("yacas")
library(yacas)
and get this:
Warning message:
package ‘yacas’ is not available
2012 Sep 04
3
Ryacas
I am having issues with Ryacas errors. I searched and found this error was
reported in 2006, but nothing since.
> library(Ryacas)
Loading required package: XML
> yacas(expression(Factor(x^2-1)))
[1] "Starting Yacas!"
CommandLine(1) : Expecting ) closing bracket for sub-expression, but got ^
instead
> yacas("D(x)Sin(x)")
CommandLine(1) : Expecting ) closing bracket
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 (...)
{
as.character(sapply(as.list(match.call(expand.dots =
2017 Sep 19
1
symbolic computing example with Ryacas
Thanks for the response. Yes, I did study the vignette but did not
understand it fully. Anyway, I have tried once again now. I am happy to say
that I have got what I wanted.
library(Ryacas)
x <- Sym("x");U <- Sym("U");x0 <- Sym("x0");C <- Sym("C")
my_func <- function(x,U,x0,C) {
return (U/(1+exp(-(x-x0)/C)))}
FirstDeriv <-
2008 Jan 24
1
Ryacas behaving weird
There is either something wrong with either me or is Yacas/Ryacas doing odd
things. See below I ask to simpify an expression and the there's output! If
this is a simplification.. well.. Do you think there is something set wrong
somewhere. Thanks.
> library(Ryacas)
Loading required package: XML
> a=Sym("a")
> N=Sym("N")
> b=Sym("b")
>
2010 Aug 26
1
equalize function with zero and convert it
Dear all,
I want to equalize a symbolic derivative (of a function with two
variables) with zero and convert it to a variable, e.g. x.
I'm computing the derivative by: (found it in the archive)
library(Ryacas)
f <- function(x,y) (100-x-y)*x-10*x
yacas(f) # register f with yacas
Df <- f
body(Df) <- yacas(expression(deriv(f(x,y),x)))[[1]]
Df
R-Output:
function (x, y)
100 - x - y -
2023 Nov 28
1
computer algebra in R
Dear all,
I'm currently working on converting mathematica code
(https://github.com/ASDSE/thermosimfit/blob/master/Packages/thermoHD-Comp/thermoCacheHD-1Comp.m)
to R. The code is related to solve algebraic systems.
> eqthermo = {h0 == h + hd + hga, d0 == d + hd, ga0 == ga + hga, kga ==
> ???? hga / (h * ga), kd == hd / (h * d)};
>
> (* IDA HD*)
> sthdIDAcacheHD[fkd_, fkga_,
2017 Sep 19
2
symbolic computing example with Ryacas
Hi all,
I am trying to implement the following matlab code with Ryacas :
syms U x x0 C
d1=diff(U/(1+exp(-(x-x0)/C)),x);
pretty(d1)
d2=diff(U/(1+exp(-(x-x0)/C)),x,2);
pretty(d2)
solx2 = solve(d2 == 0, x, 'Real', true)
pretty(solx2)
slope2=subs(d1,solx2)
I have tried the following :
library(Ryacas)
x <- Sym("x");U <- Sym("U");x0 <-
2017 Sep 19
0
symbolic computing example with Ryacas
Have you studied the "Introduction to Ryacas" vignette that come with the
package?
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Sep 19, 2017 at 2:37 AM, Vivek Sutradhara <viveksutra at gmail.com>
wrote:
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