0% found this document useful (0 votes)
8 views2 pages

Graphing Rational Functions in Python

Uploaded by

hplaptop175k
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Graphing Rational Functions in Python

Uploaded by

hplaptop175k
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

------Q7 Part 1-----

import numpy as np
import [Link] as plt

x=[Link](-10,10,1000)
x = x[(x != -3) & (x != 1/2)]

y=(x**2+1)/(2*x**2+5*x-3)

[Link](-5,5)
[Link](y=0.5, color='black', linestyle='--')
[Link](x=0.5, color='black', linestyle='--')
[Link](x=-3, color='black', linestyle='--')

x1=0
y1=0
[Link](x1,y1,color='black')
[Link]("Q 7 Part 1")
[Link]("x-axis")
[Link]("(x**2+1)/(2*x**2+5*x-3)")
[Link](x,y)
[Link](True)
[Link]()

------Q7 Part 2-----


import numpy as np
import [Link] as plt

x=[Link](-10,10,1000)
x = x[(x != 1) & (x != -2)]

y=(2*x**2+x-1)/(x**2+x-2)

[Link](-5,5)
[Link](y=2, color='black', linestyle='--')
[Link](x=1, color='black', linestyle='--')
[Link](x=-2, color='black', linestyle='--')

x1=0
y1=0
[Link](x1,y1,color='black')
[Link]("Q 7 Part 2")
[Link]("x-axis")
[Link]("(2*x**2+x-1)/(x**2+x-2)")
[Link](x,y)
[Link](True)
[Link]()
------Q7 Part 3-----

import numpy as np
import [Link] as plt

x=[Link](-10,10,1000)
y2=x+1

x!=1
y=(x**2-4)/(x-1)

[Link](-5,5)
[Link](x=1, color='black', linestyle='--')

x1=0
y1=0
[Link](x1,y1,color='black')
[Link]("Q 7 Part 3")
[Link]("x-axis")
[Link]("(x**2-4)/(x-1)")
[Link](x,y)
[Link](x,y2,color='black')
[Link](True)
[Link]()

You might also like