1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vekshin1
3 years ago
5

Write a Python function, twoQuadratics, that takes in two sets of coefficients and x-values and prints the sum of the results of

evaluating two quadratic equations. It does not do anything else. That is, you should evaluate and print the result of the following equation:
a1∗x12+b1∗x1+c1+a2∗x22+b2∗x2+c2
Computers and Technology
1 answer:
Ilya [14]3 years ago
7 0

Answer:

The function is as follows:

def twoQuadratics(a1, b1, c1, x1, a2, b2, c2, x2):

   result = a1*x1**2+b1*x1+c1+a2*x2**2+b2*x2+c2

   return result

Explanation:

This defines the function

def twoQuadratics(a1, b1, c1, x1, a2, b2, c2, x2):

This calculates the required sum

   result = a1*x1**2+b1*x1+c1+a2*x2**2+b2*x2+c2

This returns the calculated sum

   return result

You might be interested in
Which evidence helps answer the question "Did the girl
Galina-37 [17]

Answer: it’s B, D, and E

5 0
4 years ago
Read 2 more answers
G The method of mapping where each memory locationis mapped to exactly one location in the cache is
Otrada [13]

Answer:

Direct Mapped Cache

Explanation:

Given that a Direct Mapped Cache is a form of mapping whereby each main memory address is mapped into precisely one cache block.

It is considered cheaper compared to the associative method of cache mapping, and it is faster when searching through it. This is because it utilizes a tag field only.

Hence, The method of mapping where each memory location is mapped to exactly one location in the cache is "Direct Mapped Cache"

4 0
3 years ago
Which of the following was the most significant impact the phonograph had on the recording arts industry?
liraira [26]

Answer:

The phonograph led to mass distribution of recordings.

Explanation:

I just took this assignment. :)

4 0
3 years ago
Read 2 more answers
Assume that you have an ArrayList variable named a containing 4 elements, and an object named element that is the correct type t
jonny [76]

Answer:

Option (4) is the correct answer.

Explanation:

In Java programming language ,array collection starts from 0 index location and ends in a size-1 index location. So to access the last elements the user needs to use a[Size-1] statement. so to modify the value of the last location of the array the user needs to use "a[size-1]= element;".

But when the user wants to add some new value to the end of the array list collection then he needs to use the statement--

a.add(element); //where add is a function, element is a value and a is a array list object.

Another option is invalid because--

  • Option 1 is not the correct because "a[3]=element;" modify the value of the 3rd element of the array.
  • Option 2 gives a compile-time error because add functions bracts are not closed.
  • Option 3 gives the error because a[4] gives the location of the 5th element of the array but the above question says that a is defined with 4 elements.
7 0
3 years ago
How is all data stored on a computer?
Maru [420]

Answer:

All data in a computer is stored as a number. Binary data is primarily stored on the hard disk drive (HDD). The device is made up of a spinning disk (or disks) with magnetic coatings and heads that can both read and write information in the form of magnetic patterns.

Explanation:

Please mark me as brainilest if you don't mind and have a wonderful day!! :D

4 0
3 years ago
Read 2 more answers
Other questions:
  • A type of specialty processor devoted exclusively to protecting your privacy.
    9·2 answers
  • What type of malware can, for example, locks up a user's computer and then display a message that purports to come from a law en
    9·1 answer
  • 1. Assume you're using a three-button mouse. To access shortcut menus, you would
    6·2 answers
  • What are three key characteristics of an OS process?
    11·1 answer
  • What is the cheapest way to add more USB ports to your computer?
    14·1 answer
  • Which of the following is not a data visualization technique?
    6·1 answer
  • Using a while loop, create an algorithm extractDigits that prints the
    6·1 answer
  • Emma wants an artificial intelligence system with limited information on botony to identify a type of plant from an image. which
    6·1 answer
  • Mark just finished reading the cay and must write a book report comparing events in the book to events in his life. based on eac
    8·1 answer
  • Explain external interface bus
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!