Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

### 2 . Pythagorean Theorem The Pythagorean theorem says that the length $C$ of a hypotenuse of a right - triangle can be calculated the

### 2. Pythagorean Theorem
The Pythagorean theorem says that the length $C$ of a hypotenuse of a right-triangle can be calculated the lengths $A$ and $B$ of the other two sides, using the Pythagorean theorem - equation (1).
$$
C^2= A^2+ B^2\:\;\:\:\:\: (1)
$$
Here are requirements for the function m-file.
- Parameter lists (inputs): Lengths $C$ and $A$
- Return value (outputs): Length $B$ from the equation (1)
- Function name: **Pythagorean_yourEmailAccount**
Using a script m-file which will call the *Pythagorean* function, save outputs with following given inputs.
- If the given inputs are $C =13$ and $A =5$, find the outputs of your **Pythagorean_yourEmailAccount** function. Then save the return values on ***EX1_6.dat***.
- If the given inputs are $C =15$ and $A =10$, find the outputs of your **Pythagorean_yourEmailAccount** function. Then save the return values on ***EX1_7.dat***.
- If the given inputs are $C =12$ and $A =5$, find the outputs of your **Pythagorean_yourEmailAccount** function. Then save the return values on ***EX1_8.dat***.
- If the given inputs are $C =5$ and $A =2$, find the outputs of your **Pythagorean_yourEmailAccount** function. Then save the return values on ***EX1_9.dat***.
- If the given inputs are $C =6$ and $A =4$, find the outputs of your **Pythagorean_yourEmailAccount** function. Then save the return values on ***EX1_10.dat***.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. y dy ( + 4)(2 1)

Answered: 1 week ago