Quantcast

Need help

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Need help

pial das
Hello,

I am brand new in this site as well as in R. Please accept my early apology if it's not the right place to ask such a question.

I have the following equation:

b=[2(1-a)(1+2a)^0.5]/(1+3a)

How can I solve the above equation for 'a' using R?

Thanks in advance.

KD

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need help

Bert Gunter
Homework? We don't do homework here.

-- Bert

On Wed, Sep 12, 2012 at 11:56 AM, pial das <[hidden email]> wrote:

> Hello,
>
> I am brand new in this site as well as in R. Please accept my early apology if it's not the right place to ask such a question.
>
> I have the following equation:
>
> b=[2(1-a)(1+2a)^0.5]/(1+3a)
>
> How can I solve the above equation for 'a' using R?
>
> Thanks in advance.
>
> KD
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need help

Bert Gunter
Well, then ...

I've cc'ed this to R-Help so that you can get other opinions to that I
express below.

R is for data analysis, statistics, and graphing data. R **can** do
(natively) some symbolic mathematics/algebra; and there are R packages
(Ryacas for one) that provide interfaces to symbolic math systems
(Yacas in this case). But, in general, since you're already using
Maple for this purpose, I'd say to stick with it and learn to use R
for its intended purpose. One good tutorial to this end is "An
Introduction to R," which ships with every copy of R. There are also
many on the Web, and CRAN has many books on R listed.

-- Bert

On Wed, Sep 12, 2012 at 2:56 PM, pial das <[hidden email]> wrote:

> Thanks, Bert.
> However, this is not a HW. I use Maple and Matlab. Want to learn about R
> too.
>
>
> ________________________________
> From: Bert Gunter <[hidden email]>
> To: pial das <[hidden email]>
> Cc: "[hidden email]" <[hidden email]>
> Sent: Wednesday, September 12, 2012 4:40 PM
> Subject: Re: [R] Need help
>
> Homework? We don't do homework here.
>
> -- Bert
>
> On Wed, Sep 12, 2012 at 11:56 AM, pial das <[hidden email]> wrote:
>> Hello,
>>
>> I am brand new in this site as well as in R. Please accept my early
>> apology if it's not the right place to ask such a question.
>>
>> I have the following equation:
>>
>> b=[2(1-a)(1+2a)^0.5]/(1+3a)
>>
>> How can I solve the above equation for 'a' using R?
>>
>> Thanks in advance.
>>
>> KD
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> [hidden email] 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.
>
>
>
> --
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> Internal Contact Info:
> Phone: 467-7374
> Website:
> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
>
>



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need help

Michael Weylandt
If you want to solve it _numerically_ there are many options within R:
if you want to solve symbolically, you'll probably need to interface
to some symbolics software, e.g., Ryacas.

Cheers,
Michael

On Wed, Sep 12, 2012 at 11:08 PM, Bert Gunter <[hidden email]> wrote:

> Well, then ...
>
> I've cc'ed this to R-Help so that you can get other opinions to that I
> express below.
>
> R is for data analysis, statistics, and graphing data. R **can** do
> (natively) some symbolic mathematics/algebra; and there are R packages
> (Ryacas for one) that provide interfaces to symbolic math systems
> (Yacas in this case). But, in general, since you're already using
> Maple for this purpose, I'd say to stick with it and learn to use R
> for its intended purpose. One good tutorial to this end is "An
> Introduction to R," which ships with every copy of R. There are also
> many on the Web, and CRAN has many books on R listed.
>
> -- Bert
>
> On Wed, Sep 12, 2012 at 2:56 PM, pial das <[hidden email]> wrote:
>> Thanks, Bert.
>> However, this is not a HW. I use Maple and Matlab. Want to learn about R
>> too.
>>
>>
>> ________________________________
>> From: Bert Gunter <[hidden email]>
>> To: pial das <[hidden email]>
>> Cc: "[hidden email]" <[hidden email]>
>> Sent: Wednesday, September 12, 2012 4:40 PM
>> Subject: Re: [R] Need help
>>
>> Homework? We don't do homework here.
>>
>> -- Bert
>>
>> On Wed, Sep 12, 2012 at 11:56 AM, pial das <[hidden email]> wrote:
>>> Hello,
>>>
>>> I am brand new in this site as well as in R. Please accept my early
>>> apology if it's not the right place to ask such a question.
>>>
>>> I have the following equation:
>>>
>>> b=[2(1-a)(1+2a)^0.5]/(1+3a)
>>>
>>> How can I solve the above equation for 'a' using R?
>>>
>>> Thanks in advance.
>>>
>>> KD
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> [hidden email] 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.
>>
>>
>>
>> --
>>
>> Bert Gunter
>> Genentech Nonclinical Biostatistics
>>
>> Internal Contact Info:
>> Phone: 467-7374
>> Website:
>> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
>>
>>
>
>
>
> --
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> Internal Contact Info:
> Phone: 467-7374
> Website:
> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Need help

Michael Weylandt
> ________________________________
>> From: R. Michael Weylandt <[hidden email]>
>> To:
>> Cc: pial das <[hidden email]>; [hidden email]
>> Sent: Wednesday, September 12, 2012 6:12 PM
>> Subject: Re: [R] Need help
>>
>> If you want to solve it _numerically_ there are many options within R:
>> if you want to solve symbolically, you'll probably need to interface
>> to some symbolics software, e.g., Ryacas.
>>
> On Thu, Sep 13, 2012 at 3:14 AM, pial das <[hidden email]> wrote:
> Hi Michael,
>
> Thanks for your response.
> I want to solve it symbolically.
> Any further assistance will be highly appreciated.
> Best,
> KD

Like I said, look in to Ryacas which provides an inteirface to the
FOSS Yacas Mathematidca clone. This really isn't a sweet spot of
'core' R and other than that, I don't know of other ways to do it. If
your impetus is getting away from propriety software, you might also
look into Sage.

Cheers,
Michael

______________________________________________
[hidden email] 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.
Loading...