Question

write a script with the following with octave: x = 4 y = x /1+2√e

write a script with the following with octave:

x = 4 y = x /1+2√e

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clc%clears the screen
clear all %clears the history
format long
x=4;
y=x/(1+2*sqrt(exp(1)))

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
write a script with the following with octave: x = 4 y = x /1+2√e
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
  • 1. Write an Octave script (lab02_01.m), perform the following operation.    (a) Create two variable a1=5,...

    1. Write an Octave script (lab02_01.m), perform the following operation.    (a) Create two variable a1=5, a2=7;    (a) Create a vector t from 0 to 2 with step size to 0.001;    (b) Create a vector sig of a1sin(22t)+a2sin(24t);    (c) Plot the vector sig vs t in a subplot region 1; (d) Using For, While, if statement, perform the following operation        (i) sig_2 = sig        if sig>0        (ii) sig_2=-sig*2+1    if sig<0...

  • Using Matlab or Octave, I do not know how to write the script for this problem,...

    Using Matlab or Octave, I do not know how to write the script for this problem, please help. Must match sample output 5. Consider a 3 x 3 matrix given by A = 01 012 013 az az 633 ( dai 632 033 The trace of A is defined as tr(A)=2au. Given another 3 x 3 matrix bu bı2 bia B- bi brz bra | bgi bz2 by it can be shown that trAB') = tr(AB). Write a script that...

  • Note this: : 2. Write a bash script that reads two numbers x and y and...

    Note this: : 2. Write a bash script that reads two numbers x and y and performs addition, subtraction, multiplication, and division of the two numbers (x+y, x-y, x*y, x/y) and prints out each of these values along with some text to indicate what these numbers are. Submit as a shell script file that can be run. (25x4]

  • Using octave, Write a script that prompts the user for a vector of multiple measurements of...

    Using octave, Write a script that prompts the user for a vector of multiple measurements of a cylinder’s radius. The script should then prompt the user for a vector of multiple measurements of a cylinder’s height. The volume v of a cylinder with radius r and height h is given by v = πr2h. The script should then calculate and print the volume obtained for each pair of trial measurements. The script should work for any number of trial measurements....

  • Write a Matlab script to complete the following: 1. Write a script file that allows a...

    Write a Matlab script to complete the following: 1. Write a script file that allows a user to: a. Plot a function from a list b. Change the function coefficients c. Choose function range and number of points d. Replot a new function on the same graph keeping the original function e. Replot a new function on the same graph overwriting the original function f. Save the graph (as a png file) Functions to choose from: y A sin(Bx +...

  • Write a MATLAB script file that will find the values of X and Y required to...

    Write a MATLAB script file that will find the values of X and Y required to minimize the function f(x,y) = 30x + 60y + 40pi*y subject the constraining function g(x,y) = 2xy + (pi*y^2)/2 - 1600 using the method of the Lagrange Optimization Technique.

  • 4. Given (x)=x-5x + 5x5x2 - 6x , write a symbolic MATLAB script that: (a) plots...

    4. Given (x)=x-5x + 5x5x2 - 6x , write a symbolic MATLAB script that: (a) plots g(x) in the interval -2 <x< 4, (b) finds and display all of its maxima and minima, (c) evaluates g(x) at the following values of x: -21, 21, 0, 1, 2st and displays the five results. tidad

  • Write a MATLAB script to plot the function of f(x) given by: Write a MATLAB script...

    Write a MATLAB script to plot the function of f(x) given by: Write a MATLAB script to plot the function of f(x) given by: f(x) = integral x^2 - pi^2/4 x > pi/2 8 * cos x -pi/2 lessthanorequalto x lessthanorequalto pi/2 pi^2/4 - x^2 x < -pi/2

  • 1) Write a script that plots sin(x), cos(x), tan(x) for x between 0 and 360◦ (or...

    1) Write a script that plots sin(x), cos(x), tan(x) for x between 0 and 360◦ (or 2π radians) on one graph, adjusts the y axis to range between −10 and +10, and includes a legend identifying each line. 2)Write a Matlab function that sums up a specified number of odd-power terms from the Maclaurin series of sin(x) For example, if you use the function you wrote to sum the first 10 terms for x = 1, you should get 1...

  • Write a script in R to find the following 4. Consider Y ~ Gamma(a = 3,...

    Write a script in R to find the following 4. Consider Y ~ Gamma(a = 3, 8 = 1.5). Find the following probabilities: (a) P(Y < 10) (b) P(Y > 10) (C) P(Y = 9) (d) P(0 <Y <6)

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