Question

PYTHON: I am writing a script to evaluate the linear equation Y=3X+7. for x values from...

PYTHON: I am writing a script to evaluate the linear equation Y=3X+7. for x values from -3 to 9, I have to use the range and a for loop

0 0
Add a comment Improve this question Transcribed image text
Answer #1
print('x', '\t', 'y')
for x in range(-3, 10):
    print(x, '\t', 3*x + 7)

Add a comment
Know the answer?
Add Answer to:
PYTHON: I am writing a script to evaluate the linear equation Y=3X+7. for x values from...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • code that I started: # THIS IS NEEDED TO USE ARRAYS IN PYTHON: from array import * # THIS IS NEEDED TO MAKE PLOTS IN PY...

    code that I started: # THIS IS NEEDED TO USE ARRAYS IN PYTHON: from array import * # THIS IS NEEDED TO MAKE PLOTS IN PYTHON: import matplotlib.pyplot as plt # IMPORT A ROUTINE FROM NUMPY USEFUL FOR CREATING AN # ARRAY FILLED WITH ZEROS from numpy import zeros # THIS COMMAND CREATES AN ARRAY OF ZEROS WITH DESIRED SHAPE: V=zeros([31,21]) newV=zeros([31,21]) # SET UP THE BOUNDARY VALUES: V=8 ON TOP OF BOX iy=20 for ix in range(0,31): V[ix,iy]=8.0 #...

  • For context this should be written in Python and I am looking for a unique solution,...

    For context this should be written in Python and I am looking for a unique solution, not one copied from elsewhere online. If the gcd(a,b) = 1, we say a and b are relatively prime. For any two relatively prime integers, there exist integers x and y such that ax + by = 1. This is called an example of a Linear Diophantine equation. Write a program that finds this x and y for each relatively prime pair.

  • Use the transformation u = 3x + y, v=x + 3y to evaluate the given integral...

    Use the transformation u = 3x + y, v=x + 3y to evaluate the given integral for the region R bounded by the lines y = - 3x + 1, y= - 3x + 3, y= - = X, and y=- -x + 2. ne lines y = – 3x+1, y = – 3x+3, y=-3x, and y=-**+2. 3 Siſ(3?+ 16 +3%) dx ay SJ (3x? + 10x9 +35) dx dy=0 (Simplify your answer.)

  • Write an 8086 assembly program to compute the following: y = 3x + 9x - 10...

    Write an 8086 assembly program to compute the following: y = 3x + 9x - 10 where x and y are 32-bit integer variables. x is in the range of (1 = < x < = 8). y is a list (use DUP when identifying and initializing y list). y only contains the result of x = 1, 3, 5, and 7. Use if-statement and while loop. The values of the y list after running the program should be: 2,...

  • 9. (12 points) Consider the system of ODE: x' y = 6x + y = 3x...

    9. (12 points) Consider the system of ODE: x' y = 6x + y = 3x - 4y (a) Rewrite the system as a second order linear ODE. (b) Solve the second order equation from (a). (c) Use your answer from (b) to find the general solution to the system.

  • Evaluate the integral [c F.dr. F(x, y) = (x + y) i + (3x - cos...

    Evaluate the integral [c F.dr. F(x, y) = (x + y) i + (3x - cos y) j where is the boundary of the region that is inside the square with vertices (0,0), (4,0),(4,4), (0,4) but is outside the rectangle with vertices (1, 1), (3,1),(3,2), (1,2). Assume that C is oriented so that the region R is on the left when the boundary is traversed in the direction of its orientation.

  • 1. Consider the linear map f R3R4 defined by f(x, y,z) (x+y+ z, 2x +4z,3x +...

    1. Consider the linear map f R3R4 defined by f(x, y,z) (x+y+ z, 2x +4z,3x + 2y +4z, 5y - 5z) a.) Find the matrix representing f (5pts) b.) Determine (i) ker(f) (2pts) (ii) Range(f) (2pts) and (i) dim(f) (lpt)

  • I need help with this python programming exercise, please! thanks in advance Create a Python script...

    I need help with this python programming exercise, please! thanks in advance Create a Python script file called hw4.py. Add your name at the top as a comment, along with the class name and date. Both exercises should be in this file, with a comment before each of them to mark it. Ex. 1. Write a program that inputs an integer number from the user, then prints a letter "O" in ASCII art using a width of 5 and the...

  • Evaluate xy dx + (x + y)dy along the curve y = 3x? from (-2,12) to...

    Evaluate xy dx + (x + y)dy along the curve y = 3x? from (-2,12) to (1,3). с xy dx + (x + y)dy = 0 xy dx + с (Type an integer or a simplified fraction.)

  • Question 3 Evaluate the function f(x) = 4 - 3x at the values x = -2,-1,0,1,...

    Question 3 Evaluate the function f(x) = 4 - 3x at the values x = -2,-1,0,1, 2. O f(-2) = 10, $(-1) = 7, () - 4. f(1) = 1, $(2) = -2 Of(-2) --2, f(-1)-1, (0)-4, f(1) = 1, $(2) = -2 of(-2) = 9, f(-1) -7, (0) - 4 f(1) = -27, $(2) = -2 Of(-2) --28, f(-1) --1, $(0)-0, (1) = 1-27, $(2) --2 Question 4 Evaluate the function h(x) = 2x at the values --2,-1,0,2. ©...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT