Commit d6f4f5fd authored by Sanjna's avatar Sanjna

Upload new file

parent 2f6c8462
import itertools as it
# import operator as op
def myFunc(deg, vals, coeffs):
i=0
while i!=(deg):
yield "x"+"*x"*(deg-i-1)+"*y"*(i)+" -> "+ str(coeffs[i]*(vals[0]**(deg-i))*(vals[1]**i))
i+=1
yield "y"+"*y"*(deg-1)+" -> "+str(coeffs[-1]*(y**(deg)))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment