Displaying 8 results from an estimated 8 matches for "prettyform".
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
2017 Sep 19
1
symbolic computing example with Ryacas
...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 <- deriv(my_func(x,U,x0,C), x)
PrettyForm(FirstDeriv)
#slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)")
slope <- Subst(FirstDeriv,x,x0)
#PrettyForm(slope) - gives errors
PrettyForm(Simplify(slope))
I was confused by the references to the yacas command. Now, I have chosen
to omit it. Then I get what I want.
Thanks...
2017 Sep 19
2
symbolic computing example with Ryacas
...slope2=subs(d1,solx2)
I have tried the following :
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 <- deriv(my_func(x,U,x0,C), x)
PrettyForm(FirstDeriv)
slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)")
PrettyForm(slope)
I don't understand how I should use the Subst command. I want the slope of
the first derivative at x=x0. How do I implement that?
I would appreciate any help that I can get.
Thanks,
Vivek...
2017 Sep 19
0
symbolic computing example with Ryacas
...>
> 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 <- deriv(my_func(x,U,x0,C), x)
>
> PrettyForm(FirstDeriv)
>
> slope <- yacas("Subst(x,x0),deriv(my_func(x,U,x0,C), x)")
>
> PrettyForm(slope)
>
>
> I don't understand how I should use the Subst command. I want the slope of
> the first derivative at x=x0. How do I implement that?
>
> I would apprec...
2007 May 03
0
Ryacas now on CRAN
...m/svn/trunk/inst/doc/Ryacas.pdf
SAMPLE SESSION
(need fixed font email viewer to view correctly)
> library(Ryacas)
>
> # algebra
>
> library(Ryacas)
> x <- Sym('x')
> (x+1) * (x-1)
expression((x + 1) * (x - 1))
> Simplify("%")
expression(x^2 - 1)
> PrettyForm("%")
2
x - 1
>
> # calculus
>
> Integrate(x+tan(x), x)
expression(x^2/2 - log(cos(x)))
>
> # exact arithmetic
>
> yacas('12/24')
expression(1/2)
>
> # ASCII pretty printing
>
> exp(-x^2)/(cos(x)+exp(x))
expression(exp(-x^2)/(cos(x) + exp(x)...
2007 May 03
0
Ryacas now on CRAN
...m/svn/trunk/inst/doc/Ryacas.pdf
SAMPLE SESSION
(need fixed font email viewer to view correctly)
> library(Ryacas)
>
> # algebra
>
> library(Ryacas)
> x <- Sym('x')
> (x+1) * (x-1)
expression((x + 1) * (x - 1))
> Simplify("%")
expression(x^2 - 1)
> PrettyForm("%")
2
x - 1
>
> # calculus
>
> Integrate(x+tan(x), x)
expression(x^2/2 - log(cos(x)))
>
> # exact arithmetic
>
> yacas('12/24')
expression(1/2)
>
> # ASCII pretty printing
>
> exp(-x^2)/(cos(x)+exp(x))
expression(exp(-x^2)/(cos(x) + exp(x)...