does anyone know how to create the code for making a slope field? so if i insert a function using gui or something it'll graph the slopes for the function on the graphic screen. here's wat i have so far:
import math
from livewires import *
begin_graphics( )
x1=random_betwe en(1,639)
y1=random_betwe en(1,479)
plot(x1,y1)
a=5
while a==5 :
corner= float(random_be tween(1,3))
if corner == 1:
x2=320
y2=480
elif corner == 2:
x2=0
y2=0
else:
x2=640
y2=0
x1=(x1+x2)/2
y1=(y1+y2)/2
plot(x1,y1)
i know im missing the yend. and probably some other stuff too, but if anyone can help me out finding the missing codes and errors, i'll appreciate it a lot.
import math
from livewires import *
begin_graphics( )
x1=random_betwe en(1,639)
y1=random_betwe en(1,479)
plot(x1,y1)
a=5
while a==5 :
corner= float(random_be tween(1,3))
if corner == 1:
x2=320
y2=480
elif corner == 2:
x2=0
y2=0
else:
x2=640
y2=0
x1=(x1+x2)/2
y1=(y1+y2)/2
plot(x1,y1)
i know im missing the yend. and probably some other stuff too, but if anyone can help me out finding the missing codes and errors, i'll appreciate it a lot.
Comment