The sum of three nonnegative numbers is 36. One of the numbers
is twice one of...
The sum of three nonnegative numbers is 36. One of the numbers
is twice one of the other numbers. None of the numbers are greater
than 12. What is the maximum value of the product of these three
numbers? Use x, y, z as your variables
A die is thrown twice and the sum of the numbers rising is noted to be 6. Calculate the is the conditional probability that the number 4 has arrived at least once?
a)Find two positive numbers such that the sum of the first number
and twice the second number is 108 and the product is a maximum
b)figure out the dimentions of a rectangular solid that has a
square base of maximum volume if its surface area is 216 square
inches
Theory: A vector with nonnegative entries is called a
probability vector if the sum of its entries is 1. A square matrix
is called right stochastic matrix if its rows are probability
vectors; a square matrix is called a left stochastic matrix if its
columns are probability vectors; and a square matrix is called a
doubly stochastic matrix if both the rows and the columns are
probability vectors.
**Write a MATLAB function
function [S1,S2,P]=stochastic(A)
which accepts a square matrix A...
The number 81 is written as a sum of three natural numbers 81 =
a + b + c (the triple (a,b,c) is ordered; e.g., the decompositions
81 = 1 + 1 + 79 and 81 = 1 + 79 + 1 are different. Also, assume
that all the decompositions have equal probability.) What is the
probability that there exists a triangle with sides a, b, and c?
(PLEASE EXPLAIN THE STEPS AND WHY YOU KNOW TO DO STEPS, THANKS)
1.
A) How many three-digit numbers are there for which the sum of
the digits is at least 25?
B) How many three-digit numbers can be formed if only odd
numbers are allowed to be re-used
Please combinatorics principles where applicable.
Question4: Create and use a lambda expression which calculates
the sum of three numbers. Ask the user for three numbers and use
the lambda function to print the sum [6 marks]
Question5:
Write a generator function which generates the Fibonacci
series. [0,1,2,4,8,16,…]. The Fibonacci series is a list of numbers
where each number is the sum of the previous two. [3 marks]
Then write the code to iterate through the first six numbers
of sequence. [3 marks]
Question6: Write a...