Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which program calculates the following equation where error checking must be included in the answer? X3 + 3x 7Xa + 1 VX + a X

image text in transcribed
image text in transcribed
Which program calculates the following equation where error checking must be included in the answer? X3 + 3x 7Xa + 1 VX + a X = input ("Enter X:"); = input ("Enter a:'); S1 = = sqrt(X+a); S2 = 7*X*a + 1; if((S1>=0)&&(S2== 0)) f = (x^3 + 3x)/(7*X*a+1) - sqrt(51); fprintf('f = %f ', f); else fprintf("Error'); end X = input ("Enter X:"); a = input ("Enter a:"); S1 = X+a; S2 = 7*X*a + 1; if((S1>=0)&&(S2!=0)) f = (x^3 + 3*x)/ (7*X*a+1 - sqrt(S1)); b) fprintf('f = %f ', f); else fprintf('Error'); end X = input ("Enter X:"); a = input ("Enter a:'); S1 =X+a; S2 - 7*X*a + 1; if((S1>=0)&&(S21=0)) f= (x^3 + 3x)/ (7*X*a+1 - sqrt(S1)); fprintf('f=%f ', f); else fprintf("Error'); end b) X=input('Enter X:"); a = input ('Enter a:'); S1 =X+a; S2 = 7*X*a + 1; if((S1>=0)&&(S2!= 0)) f = (x^3 + 3*x)/(7*X*a+1) - sqrt(51); c) fprintf('f = %f ', f); else fprintf('Error'); end X=input('Enter X:"); a = input ('Enter a:"); $1 = X+a; S2 = 7*X*a + 1; if((S1>=0)&&(S2>0)) f = (x^3 +3*X/7*X*a+1) - S1; d) fprintf('f = %f ', f); else fprintf("Error'); end

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

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions