Re: [R] How to import simple java/mathematica expression to R

2010-07-24 Thread Andrey Siver
2010/7/24 David Winsemius : > > On Jul 23, 2010, at 10:29 PM, jim holtman wrote: > > It has some interesting properties with that identity definition of EE(x). > Local maxima at 1 and 0, "blows up" beyond -1 and 2, and several local > minima nearby: > > Math.Fn <- function(alp) { } > plot( seq(-.3

Re: [R] How to import simple java/mathematica expression to R

2010-07-24 Thread Andrey Siver
Hello, 2010/7/24 jim holtman : > Well, I took you equation and put the following at the start: > > Power <- function(x,y) x^y > EE <- function(x) x > alp <- 2 > > x <- 900*Power(-0.2030178326474623 + 0.23024073983368956*(1 - alp) + >... Actually, there are many functions like this (about 18*2

Re: [R] How to import simple java/mathematica expression to R

2010-07-23 Thread David Winsemius
On Jul 23, 2010, at 10:29 PM, jim holtman wrote: Well, I took you equation and put the following at the start: Power <- function(x,y) x^y EE <- function(x) x alp <- 2 x <- 900*Power(-0.2030178326474623 + 0.23024073983368956*(1 - alp) + 0.2807352820970084*(1 - alp)*(1 - alp*(1 + EE(1

Re: [R] How to import simple java/mathematica expression to R

2010-07-23 Thread jim holtman
Well, I took you equation and put the following at the start: Power <- function(x,y) x^y EE <- function(x) x alp <- 2 x <- 900*Power(-0.2030178326474623 + 0.23024073983368956*(1 - alp) + 0.2807352820970084*(1 - alp)*(1 - alp*(1 + EE(1))) + 0.2145643524071315*(1 - alp)* Power(1 - alp*(

Re: [R] How to import simple java/mathematica expression to R

2010-07-23 Thread Andrey Siver
Hello, 2010/7/23 jim holtman : > It would be nice if you could post what the data looks like that you > want to import.  R can import any text file and then you have string > manipulation that you can do to parse it.  So the basic answer is > probably yes, but we do need to understand the format o

Re: [R] How to import simple java/mathematica expression to R

2010-07-23 Thread jim holtman
It would be nice if you could post what the data looks like that you want to import. R can import any text file and then you have string manipulation that you can do to parse it. So the basic answer is probably yes, but we do need to understand the format of the data to give a more precise answer

[R] How to import simple java/mathematica expression to R

2010-07-23 Thread Andrey Siver
Hello, Is it possible to import some (large enough) polynomial expression from java (or mathematica) to R as a function? I found very interesting package rJava but I did not see this feature there. We used Mathematica as calculation engine for our program with statistical calculations and now we