Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Label function automaticaly, 2d plot

def random_between(j,k): a=int(random()*(k-j+1))+j return a

t = var('t')

m1=random_between(-5,5) b1=random_between(-5,5) y1=m1*t+b1

m2=random_between(-5,5) b2=random_between(-5,5) y2=m2*t+b2

m3=random_between(-5,5) b3=random_between(-5,5) y3=m3*t+b3

m4=random_between(-5,5) b4=random_between(-5,5) y4=m4*t+b4

p1=plot(y1, (t,-5,5), gridlines=True,color='red') p2=plot(y2, (t,-5,5), gridlines=True,color='green') p3=plot(y3, (t,-5,5), gridlines=True,color='orange') p4=plot(y4, (t,-5,5), gridlines=True,color='pink') p=p1+p2+p3+p4 show(p)

Well, I would like to view full grid, and auto lable functions, is this possible, i have here 3 Books, do i have to look somewhere else?

click to hide/show revision 2
None

updated 2018-03-10 19:55:44 -0500

kcrisman gravatar image

Label function automaticaly, 2d plot

def random_between(j,k): a=int(random()*(k-j+1))+j return a

t = var('t')

var('t')

m1=random_between(-5,5) b1=random_between(-5,5) y1=m1*t+b1

y1=m1*t+b1

m2=random_between(-5,5) b2=random_between(-5,5) y2=m2*t+b2

y2=m2*t+b2

m3=random_between(-5,5) b3=random_between(-5,5) y3=m3*t+b3

y3=m3*t+b3

m4=random_between(-5,5) b4=random_between(-5,5) y4=m4*t+b4

y4=m4*t+b4

p1=plot(y1, (t,-5,5), gridlines=True,color='red') p2=plot(y2, (t,-5,5), gridlines=True,color='green') p3=plot(y3, (t,-5,5), gridlines=True,color='orange') p4=plot(y4, (t,-5,5), gridlines=True,color='pink') p=p1+p2+p3+p4 show(p)

show(p)

Well, I would like to view full grid, and auto lable functions, is this possible, i have here 3 Books, do i have to look somewhere else?

click to hide/show revision 3
None

updated 2018-03-10 19:56:02 -0500

kcrisman gravatar image

Label function automaticaly, 2d plot

Function:

def random_between(j,k):
     a=int(random()*(k-j+1))+j
     return a 

t = var('t')

m1=random_between(-5,5)
b1=random_between(-5,5)
y1=m1*t+b1

m2=random_between(-5,5)
b2=random_between(-5,5)
y2=m2*t+b2

m3=random_between(-5,5)
b3=random_between(-5,5)
y3=m3*t+b3

m4=random_between(-5,5)
b4=random_between(-5,5)
y4=m4*t+b4

p1=plot(y1, (t,-5,5), gridlines=True,color='red')
p2=plot(y2, (t,-5,5), gridlines=True,color='green')
p3=plot(y3, (t,-5,5), gridlines=True,color='orange')
p4=plot(y4, (t,-5,5), gridlines=True,color='pink')
p=p1+p2+p3+p4
show(p)

Well, I would like to view full grid, and auto lable functions, is this possible, i have here 3 Books, do i have to look somewhere else?