Mathematica program
Not what you're looking for?
Using Mathmatica 6 set up and run the following:
Please show the answers in PDF format...note Mathmatica must be used prefer 6 but can accept 5.2.
a) The built in function Prime[n], outputs the nth prime number. Make a function which lists the first n prime numbers using the Table command.
b) Write a function to find the average of the first n prime numbers using the Apply[Plus,..] function.
c) Make a table of ordered pairs {n,avgprime[n]}, where n is the average value of the first n prime numbers from b), from n = 1 to n = 250.
d) Make a plot of the ordered pairs in part c).
Purchase this Solution
Solution Summary
Mathematica program for arranging the prime numbers and the list of avgprimes.
Purchase this Solution
Free BrainMass Quizzes
Graphs and Functions
This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.
Geometry - Real Life Application Problems
Understanding of how geometry applies to in real-world contexts
Solving quadratic inequalities
This quiz test you on how well you are familiar with solving quadratic inequalities.
Know Your Linear Equations
Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.
Probability Quiz
Some questions on probability