[R] can you help how to solve the equation with intregration and complex ,

From: dujiaomao <bdyang2006_at_gmail.com>
Date: Thu, 13 Nov 2008 13:27:03 -0800 (PST)

library(elliptic)

f <- function (x) {myintegrate(function(t){Im(as.complex(1+(x*t)i))}, 1,2)-1}

uniroot(f,lower = -2, upper = 2)

> f <- function (x) {myintegrate(function(t){Im(as.complex(1+(x*t)i))},
> 1,2)-1}
Error: unexpected symbol in "f <- function (x) {myintegrate(function(t){Im(as.complex(1+(x*t)i"
>
> uniroot(f,lower = -2, upper = 2)

Error in f(x) : object "ti" not found

thank you

-- 
View this message in context: http://www.nabble.com/can-you-help-how-to-solve-the-equation-with-intregration-and-complex-%2C-tp20489902p20489902.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Thu 13 Nov 2008 - 22:24:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Nov 2008 - 22:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive