1 Create a simple MATLAB CODE that will factor out the following expressions and save it on the specified variable:factor Prime factors.factor(N) returns a vector containing the prime factors of...


1


Factoring<br>My Solutions ><br>Create a simple MATLAB CODE that will factor out the following expressions and save it on the specified variable:<br>factor Prime factors.<br>factor(N) returns a vector containing the prime factors of N.<br>This function uses the simple sieve approach. It may require large memory allocation if the number given is too big. Technically it is possible to improve this algorithm, allocating<br>less memory for most cases and resulting in a faster execution time. However, it will still have problems in the worst case.<br>Factor the following expressions and place your answer on the indicated variable.<br>1. Expressionl =x – 25, save your answer to Factorl<br>2. Expression2 = x* +x – 4x + 2x – 12, save your answer to Factor2<br>3. Expression3 = x – 10x + 25 , save your answer to Factor3<br>4. Expression4 = 12x – 12xy + 3r*y – 3x, save your answer to Factor4<br>5. Expression5 = xz- 3x² – 2xyz + 6xy + xz? – 3xz +y°z – 3y² – yz + 3yz, save your answer to Factor5<br>Script e<br>A Save<br>C Reset<br>I MATLAB Documentation<br>1 %This program factors out the given expressions above and the results are saved on the specified variable<br>Run Script<br>

Extracted text: Factoring My Solutions > Create a simple MATLAB CODE that will factor out the following expressions and save it on the specified variable: factor Prime factors. factor(N) returns a vector containing the prime factors of N. This function uses the simple sieve approach. It may require large memory allocation if the number given is too big. Technically it is possible to improve this algorithm, allocating less memory for most cases and resulting in a faster execution time. However, it will still have problems in the worst case. Factor the following expressions and place your answer on the indicated variable. 1. Expressionl =x – 25, save your answer to Factorl 2. Expression2 = x* +x – 4x + 2x – 12, save your answer to Factor2 3. Expression3 = x – 10x + 25 , save your answer to Factor3 4. Expression4 = 12x – 12xy + 3r*y – 3x, save your answer to Factor4 5. Expression5 = xz- 3x² – 2xyz + 6xy + xz? – 3xz +y°z – 3y² – yz + 3yz, save your answer to Factor5 Script e A Save C Reset I MATLAB Documentation 1 %This program factors out the given expressions above and the results are saved on the specified variable Run Script
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here