Post

1 follower Follow
0
Avatar

Find function value in rstudio

I have the function

fun1 <- function(x) -(2 * (sin(x) * cos(x)))

Now I want to find for which values of x, fun1=0

Also, I have a function

fun2 <- function(x) 2 * (cos(x) * sin(x))

Now I also want to find, for which values BOTH fun1=0 AND fun2=0

Hope someone can help

Regards,

s

Søren Schwartz