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

2010-07-24 Thread Andrey Siver
Hello,

2010/7/24 jim holtman jholt...@gmail.com:
 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), for each
situation with input data.

So there is an idea to put them in different files (via Export from
Mathematica) and then use them somehow (without modifications) in R
program.

Thank You for the answer.

 --
Regards,
    -Andrey

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2010-07-24 Thread Andrey Siver
2010/7/24 David Winsemius dwinsem...@comcast.net:

 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) { big-long-expression }
 plot( seq(-.3,1.5,by=0.01), Math.Fn(seq(-.3,1.5,by=0.01) ), cex=0.2)


Indeed, EE(x) is not a function with real x, but a symbol with
subscript - i.e. EE(1) and EE(2) are two variables e1 and e2.


Thanks for Your interest.

-- 
Regards,

   -Andrey

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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 want to sell our package to
customers.
As we cannot force people to buy the Mathematica only for our program,
so we are looking for another calculation engine. R is very good
candidate.

-- 
Regards,

   -Andrey

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2010-07-23 Thread Andrey Siver
Hello,

2010/7/23 jim holtman jholt...@gmail.com:
 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.

I put the target expression to minimize (with some constrains) here:

http://analytic-products4you.com/target.txt

Is it possible to import it as a function to minimize?


 What is the problem that you are trying to solve?


We solve a problem for parameters estimation with ties.

Thank You for the answer.

-- 
Regards,

   -Andrey

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.