Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Electrical & Electronics Expert

Objectives

  • Research/review the concept of Prime Numbers
  • Execute a small MATLAB program.
  • Document your results

Prime Numbers

Use internet resources to review the definition of prime numbers. Write a mathematical formula for calculating a prime. Do not use the class PowerPoint charts as a source --- use external (web-based) information, citing your source(s).

Getting Started With MATLAB

At the MATLAB menu, enter File à New script, to type the commands below. Enter File à Save As to save this program. Give it a name like "checkprime" as illustated below. Make sure to file it in a directory in which you can find it later!

 

Execute the program, correcting any typos as necessary.

Take the time to learn to learn how the MATLAB code above actually works.

Use comments in your to illustrate your new-found knowledge. All text after the percent (%) sign on the same line is taken as comment --- MATLAB simply ignores anything to the right of this sign.

In addition, enter at least 5 numbers to check if they are prime, and document your results by copy-pasting your results into your Project Report (Word document).

Project Report

The final step of this assignment is to create a Project Report (Word document) in the format discussed in the CS122L Lab Submission Guidelines.

The Project Report should contain the following information:

Purpose
Describe the purpose of your program.

Approach
Describe your approach to completing this project.

Methods

Mathematical processes followed.

Implementation

Results and "m" file(s) of your code.

Conclusions

Describe any significant problems or challenges you encountered and how you solved them.

Submit your results (Project Report and ".m" file) in the correct place.

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M91535424

Have any Question?


Related Questions in Electrical & Electronics

Problems -problem 1 - find v0 in the op amp circuit of fig

Problems - Problem 1 - Find v 0 in the op amp circuit of Fig. 1. Problem 2 - Compute i 0 (t) in the op amp circuit in Fig. 2 if v s = 4 cos(10 4 t). Problem 3 - If the input impedance is defined as Z in = v s /I s , find ...

Nanotechnology engineering - resonance circuits questions

Nanotechnology Engineering - Resonance Circuits Questions - Q1) A series RLC network has R = 2KΩ, L = 40mH and C = 1μF. Calculate the impedance at resonance and at one-fourth, one-half, twice, and four times the resonant ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

Assignment -consider a common emitter amplifiernow lets say

Assignment - Consider a common emitter amplifier: Now let's say that R B and R C do a fine job at DC biasing the BJT but they are large so they can be neglected for small signal (AC) analysis. In that case, the equivalen ...

Research report1 read 3 to 4 journal articles about digital

Research report 1. Read 3 to 4 journal articles about digital control or industrial control, eg. one particular application, implementation aspect such as selection of sampling time, hardware etc. No text book example is ...

Problem 1given a sequence xn for 0lenle3 where x0 1 x1 1

Problem # 1: Given a sequence x(n) for 0≤n≤3, where x(0) = 1, x(1) = 1, x(2) = -1, and x(3) = 0, compute its DFT X(k). (Use DFT formula, don't use MATLAB function) Problem # 2: Use inverse DFT and apply it on the Fourier ...

Advanced computational techniques in engineering assignment

Advanced Computational Techniques in Engineering Assignment - Optimisation For this assignment, you are required to carry out the process of attempting to solve different optimisation problems. For each question, you are ...

Case studythis assignment consists of a written report of

CASE STUDY This assignment consists of a written report of approximately 1000 words and any diagrams in which you are asked to critically compare different process methods used to achieve the same result and show an awar ...

Problem 1 a two-phase servomotor has rated voltage applied

Problem 1: A two-phase servomotor has rated voltage applied to its excitation winding. The torque speed characteristic of the motor with Vc = 220 V, 60 Hz applied to its control phase winding is shown in Fig.1. The momen ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As