Não consigo plotar o gráfico da posição "y" em função da posição "x"

v0y=100sin(37 pi/180)
vox=100
cos(37
pi/180)
vo<-100 # 100m/s
g<- -9.8
s0<-0
y<-function(t)(y0+v0yt+(gt^2)/2)
x<-function(t)(x0+v0x*t)

I have written some comments (in bad Portuguese) on your code below. Please write in English here as you will be more likely to get help.

library(ggplot)

v0y=100 * sin(37 *pi/180) # precisas multiplicar os valores 
vox=100 * cos(37 * pi/180)
vo<-100 # 100m/s
g<- -9.8
s0<-0
y0 # O que esta y0 aqui?
t= 0<t<10 # O que queres fazer aqui?

# escriba-se funciones como esto, mas o que queres fazer?
y<-function(t){
  (y0+v0yt+(gt^2)/2)
}

x<-function(t){
  (x0+v0x*t)
}

# Nao podes plotar porque nao tens data.
ggplot(t ,aes(x,y)) +
  geom_line()

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.