similar to: Treating variables as symbols

Displaying 20 results from an estimated 20000 matches similar to: "Treating variables as symbols"

2015 Apr 09
3
typo in R-exts.html section 6.9
In 'Writing R Extensions' section 6.9 there is the paragraph There are interfaces (defined in header R_ext/Applic.h) for definite and for indefinite integrals. ?Indefinite? means that at least one of the integration boundaries is not finite. An indefinite integral usually means an antiderivative, not an integral over an infinite spread. Should that first sentence end with 'for
2010 Dec 16
3
Integrate two function in R
Hello I have two function in R like g(x)=2x-3 and s(x)=5x^2+2 and I want to find the integrafl of the g(x)*s(x) inside the interval of [a,b] Could you please help me find the proper function? I would like to thank you in advance for your help Regards Alex [[alternative HTML version deleted]]
2013 Dec 04
1
calcular la integral indefinida (primitiva) de una función respecto un parámetro
Hola a todos Me gustaría calcular la integral indefinida (primitiva) de una función respecto un parámetro. Al estilo de lo que hace la función D, pero al reves > s <- expression(5*x^2+2 ) > D(s,"x") 5 * (2 * x) Con integrate hay que indicar a la fuerza los límites de la integral, y con Ryacas no funciona nada, ya que no se conecta a su ip ¿Conocéis alguna forma? Saludos
2008 Sep 29
1
Integrating functions in R
I want to integrate the function (sin^7*x)*(cos^8*x)dx. I do not have values to integrate between. I just want R to give me the integral of the function. For example R takes the derivative of the function by d1=D(expression(x^2*(cosh*(x^3))), "x"). Is there a similar function available in R to find the integral? Thanks, Kim
2009 Oct 27
3
Sobre funciones
Un saludo cordial para cada uno. Les agradecería una ayuda con lo siguiente: Debo trabajar con una función de varias variabes, digamos f(x,y,z). ¿Cómo definir la función para usarla luego con ''integrate'' de forma tal que pueda fijar dos valores, ''y'' y ''z'', por ejemplo, e indicar los límites de integración para la variable que queda libre?
2015 Apr 10
0
typo in R-exts.html section 6.9
I agree, and the text is less than ideal in several other places. But I don't especially like your phrase 'infinite range', even though the idea is right. I think the necessary terminology already exists. How about something like this? There are interfaces (defined in header R_ext/Applic.h) for definite ("proper") and for _improper_ integrals, improper meaning that at
2009 Jan 05
2
help me
Hello, I am a student and I working with R. I want to ask you how to solve this integral which is shown in image attach with this letter. And how to draw this function z = 4 ? x2 ? y2 , width intervals x = ?1, y = ?1. Thank You. Yours sincerely, Jolanta
2005 Aug 13
2
monte carlo simulations/lmer
Hi - I am doing some monte carlo simulations comparing bayesian (using Plummer's jags) and maximum likelihood (using lmer from package lme4 by Bates et al). I would like to know if there is a way I can flag nonconvergence and exceptions. Currently the simulations just stop and the output reads things like: Error in optim(.Call("lmer_coef", x, 2, PACKAGE = "Matrix"), fn,
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
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 <-
2010 Feb 08
3
Dividing one column of form xx-yy into two columns, xx and yy
I have a data set where one column consists of two numerical factors, separated by a "-". So my data looks something like this: 43-156 43-43 1267-18 . . . There are additional columns consisting of single factors as well, so reading the csv file (where the data is stored) with the sep="-" addition won't work since the rest of the factors are separated by commas. So first
2007 Jul 18
1
Is there a facility in R similar to MatLab "syms" that allows using unevaluated numeric symbols in matrices?
Hi, I'm trying to use R to get eigenvalues and eigenvectors of a matrix whose elements are of the form (2 * lambda), -(lambda + mu), etc. I'd like R to treat this matrix as a numeric matrix without treating lambda and mu as variable names but rather as some sort of atomic quantities (and hence give eigenvectors in terms of mu and/or lambda). MatLab and Mathematica both do this,
2012 Aug 16
1
Symbolic computation in R-solving system of equations
Hi, To my knowledge, Ryacas can do symbolic computation in R, like Mathematica or Maple. I wonder if it (or any other R package) can solve symbolically a system of equations? I have a system of four equations in four variables (non-linear, but not very hard to solve) and wonder if Ryacas or any other package can do it. I do not find the solution in Ryacas. Can it find a symbolic solution
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:
2013 Aug 01
2
Integrales, limites
Cordial saludo quiero saber como calculo integrales impropias e indefinidas en R, y como calcular limites soy nuevo en R Muchas gracias Harvey Vargas "El verdadero perdedor no es aquél que no gana. El verdadero perdedor es aquél que tiene tanto miedo a no ganar que ni siquiera lo intenta". Alan Arkin [[alternative HTML version deleted]]
2010 May 05
3
Symbolic eigenvalues and eigenvectors
Let's say I had a matrix like this: library(Ryacas) x<-Sym("x") m<-matrix(c(cos (x), sin(x), -sin(x), cos(x)), ncol=2) How can I use R to obtain the eigenvalues and eigenvectors? Thanks, John [[alternative HTML version deleted]]
2010 Sep 21
1
Creating table from data frame
Hey, I have a dataset where two columns are factors and another column consists of values. Each combination of factors can only have a single value assigned to it. I'd like to represent this as a matrix or table where the rows are the first column factors and the columns the second column factors. So that each cell a_ij in the matrix represents the associated value for the factor combination
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