Question: Using MATLAB answer the 2 questions 1.Write a function that receives a number n and determine if it is a prime number (output 1) or
Using MATLAB answer the 2 questions

1.Write a function that receives a number n and determine if it is a prime number (output 1) or not (output 0). You can not use the isprime function.
2.Write a script to calculate the value of x in the following nested square root for different numbers of square roots. Plot the value of x versus the number of square roots. Does it converge to a specific number?
1. Write a function that receives a number n and determine if it is a prime number (output 1) or not (output 0). You can not use the 'isprime' function. 2. Write a script to calculate the value of x in the following nested square root for different numbers of square roots. Plot the value of x versus the number of square roots. Does it converge to a specific number? x=V2+V2 + V2 +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
