MATLAB: AN INTRODUCTION WITH APPLICATIO
MATLAB: AN INTRODUCTION WITH APPLICATIO
6th Edition
ISBN: 9781119626596
Author: GILAT
Publisher: WILEY
bartleby

Videos

Question
Book Icon
Chapter 6, Problem 1P
To determine

(a)

To evaluate:

The expression 6×4>323 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression 6×4>323 is 0.

Explanation of Solution

The given expression is,

6×4>323

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

6×4>32324>290

Write the MATLAB script to evaluate the expression 6×4>323.

MATLAB Code:

%Evaluate the expression

6.*4>32-3

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pa.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression 6×4>323.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  1

Conclusion:

Therefore, the value of the given expression is 0.

To determine

(b)

To evaluate:

The expression y=4×37<153>1 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression y=4×37<153>1 is 1.

Explanation of Solution

The given expression is,

y=4×37<153>1

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

y=4×37<153>1(5<5)>10>11

Write the MATLAB script to evaluate the expression y=4×37<153>1.

MATLAB Code:

%Evaluate the expression

y = 4*3-7<15./3>-1

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pb.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression y=4×37<153>1.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  2

Conclusion:

Therefore, the value of the given expression is 1.

To determine

(c)

To evaluate:

The expression y=2×(3<8/4+2)2<(2)3 without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression y=2×(3<8/4+2)2<(2)3 is 0.

Explanation of Solution

The given expression is,

y=2×(3<8/4+2)2<(2)3

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

y=2×(3<8/4+2)2<(2)32×(9<16)<(2)3(18<32)<8

Simplify the above equation,

0<80 Write the MATLAB script to evaluate the expression y=2×(3<8/4+2)2<(2)3.

MATLAB Code:

%Evaluate the expression

y = 2*(3<8/4+2).^2<-2.^3

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pc.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression y=2×(3<8/4+2)2<(2)3.

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  3

Conclusion:

Therefore, the value of the given expression is 0.

To determine

(d)

To evaluate:

The expression (5+0)/3==3(10/52) without using MATLAB then check the answer with MATLAB.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The value of the expression (5+0)/3==3(10/52) is 1.

Explanation of Solution

The given expression is,

(5+0)/3==3(10/52)

The sign ~ represents NOT operation. Assign 0 if NOT operation contains non-zero term otherwise assign 1.

Assign 1 if the comparison is correct otherwise assign 0.

Simplify the above equation,

(5+0)/3==3(10/52)2==312==21

Write the MATLAB script to evaluate the expression (5+0)/3==3(10/52).

MATLAB Code:

%Evaluate the expression

(5+~0)/3==3-~(10/5-2)

%Assign 1 if the comparison is correct otherwise assign 0.

Save the MATLAB script with name, Chapter6_56830_6_1Pd.m in the current folder. Execute the script by typing the script name at the command window to evaluate the expression (5+0)/3==3(10/52).

Result:

MATLAB: AN INTRODUCTION WITH APPLICATIO, Chapter 6, Problem 1P , additional homework tip  4

Conclusion:

Therefore, the value of the given expression is 1.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Let X represent the full height of a certain species of tree. Assume that X has a normal probability distribution with mean 203.8 ft and standard deviation 43.8 ft. You intend to measure a random sample of n = 211trees. The bell curve below represents the distribution of these sample means. The scale on the horizontal axis (each tick mark) is one standard error of the sampling distribution. Complete the indicated boxes, correct to two decimal places. Image attached. I filled in the yellow boxes and am not sure why they are wrong. There are 3 yellow boxes filled in with values 206.82;  209.84;   212.86.
Could you please answer this question using excel.Thanks
Questions An insurance company's cumulative incurred claims for the last 5 accident years are given in the following table: Development Year Accident Year 0 2018 1 2 3 4 245 267 274 289 292 2019 255 276 288 294 2020 265 283 292 2021 263 278 2022 271 It can be assumed that claims are fully run off after 4 years. The premiums received for each year are: Accident Year Premium 2018 306 2019 312 2020 318 2021 326 2022 330 You do not need to make any allowance for inflation. 1. (a) Calculate the reserve at the end of 2022 using the basic chain ladder method. (b) Calculate the reserve at the end of 2022 using the Bornhuetter-Ferguson method. 2. Comment on the differences in the reserves produced by the methods in Part 1.

Chapter 6 Solutions

MATLAB: AN INTRODUCTION WITH APPLICATIO

Ch. 6 - The Pascal triangle can be displayed as elements...Ch. 6 - Fibonacci numbers are the numbers in a sequence in...Ch. 6 - The reciprocal Fibonacci constant ?is defined by...Ch. 6 - The value of p can be estimated from:...Ch. 6 - The value of p can be estimated from the...Ch. 6 - Write a program that (a) generates a vector with...Ch. 6 - A vector is given by x= [9 -1.5 13.4 13.3 -2.1 4.6...Ch. 6 - The Pythagorean theorem states that a2+ b2= c2....Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - A safe prime is a prime number that can be written...Ch. 6 - Sexy primes are two prime numbers that the...Ch. 6 - A Mersenne prime is a prime number that is equal...Ch. 6 - A perfect number is a positive integer that is...Ch. 6 - A list of exam scores (S) (in percent out of 100%...Ch. 6 - The Taylor series expansion for axis:...Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - The following are formulas for calculating the...Ch. 6 - Body mass index (BMI) is a measure of obesity. In...Ch. 6 - Write a program in a script file that calculates...Ch. 6 - Write a program that determines the change given...Ch. 6 - The concentration of a drug in the body CPcan be...Ch. 6 - One numerical method for calculating the cubic...Ch. 6 - Write a program in a script file that converts a...Ch. 6 - In a one-dimensional random walk, the position x...Ch. 6 - The Sierpinski triangle can be implemented in...Ch. 6 - The roots of a cubic equation a3x3+a2x2+a1x+a0=0...Ch. 6 - The overall grade in a course is determined from...Ch. 6 - A Keith number is a number (integer) that appears...Ch. 6 - The following MATLAB commands create a sine-shaped...
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Ring Examples (Abstract Algebra); Author: Socratica;https://www.youtube.com/watch?v=_RTHvweHlhE;License: Standard YouTube License, CC-BY
Definition of a Ring and Examples of Rings; Author: The Math Sorcerer;https://www.youtube.com/watch?v=8yItsdvmy3c;License: Standard YouTube License, CC-BY