This is a R question, not a Rstudio question. Post in R mailing list.

Comment actions

Hello

I have two functions

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

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

I want to plot them both in one diagram. I have the parametrization

> \gamma (x) =(-2*sin(x)*cos(x),2*cos(x)*sin(x))

And actually if it was possible I want ONE function (ex.fun3) where both is defined and then plot fun3 instead of defining one for each.

Can someone help me with both questions?

Regards,

s

Date
Votes

This is a R question, not a Rstudio question. Post in R mailing list.

Comment actions