Questions tagged [homework]
Homework questions are welcome, as long as they are asked honestly, explain the problem, and show sufficient effort. Please do not use this as the only tag for a question. Please do not add this tag to questions by other people unless they explicitly say that their question is part of their homework.
274 questions
1
vote
2
answers
171
views
How to output each summand of $\sum_{n=1}^k \frac1n$ into a list?
From real analysis, I'm trying to learn more about this famous equation in this post of Mathematics.SE:
$$\sum_{n=1}^\infty \frac1n=\prod_{i=1}^\infty\frac{1}{1-\frac{1}{p_i}}\tag{1}$$
I won't ask ...
3
votes
2
answers
244
views
How to code a recursive algorithm to exponentiate $e^{1/e}$ to itself indefinitely and hence show that this sequence converges to $e$?
I seek help coding an algorithm that shows when $e^{1/e}$ is repeatedly raised to itself it will eventually converge to $e$. The context for this post comes from this same question on M.SE:
What ...
0
votes
1
answer
154
views
Solving enormous linear systems [closed]
On an assigment on numerical analysis, i'm asked to solve some linear systems of order 200x200. However, neither the function LinearSolve nor the LU decomposition run in a reasonable amount of time. ...
3
votes
5
answers
788
views
How do I set up a recursive algorithm to repeatedly square root a positive real number?
From real analysis, I was asked the following question:
What happens when you hit the square root key repeatedly on a calculator for any initial positive number $x$? Formulate this question in terms ...
0
votes
0
answers
60
views
How can I sketch and find the area of a region enclosed by a graph? [duplicate]
Sketch and find the area of a region enclosed by the graph of f(x)=x^3-x^2 and g(x)=2x
1
vote
2
answers
137
views
How can I use the midpoint approximation method to find area under a graph?
Use the midpoint approximation method to find the area under the curve of f(x)=1-x^2 over the interval [-1,1].
2
votes
0
answers
77
views
DSolve bvlim error due to Boundary condition
I am solving an Ode using Mathematica:
$$-p\alpha x^{p-1}=m\ddot{x},\quad x(0)=x_0,\quad x'(0)=x''(0)=0,\quad x(t_1)=0.$$
And I have $p\alpha>0$, all $x$ and $t$ are positive. I want to figure out $...
1
vote
1
answer
217
views
How to draw the images of these six functions in six different coordinate systems at one time as required?
The six functions are as follows:
f1[x_] := x Log[x]
f2[x_] := x/Log[x]
f3[x_] := Log[x]/x
f4[x_] := x E^x
f5[x_] := x/E^x
f6[x_] := E^x/x
It is required to draw ...
4
votes
1
answer
394
views
Illustrating the central limit theorem
I'm working on this question is from Wolfram Mathematica online course. I tried my best to find the answer, still not getting it right
The question is:
Make a list of histograms of 10000 instances of ...
1
vote
3
answers
253
views
How to plot the described figure in mathematica? [closed]
I have had an assignment for which I was supposed to calculate the maximum volume of the figure. I have done it and found my maximum points in the figure. The assignment does not require to plot the ...
0
votes
3
answers
122
views
Use the command Select to find all integers x in the list $r=Range[16]$ such that $Mod[x^4,17]=-1$ and also try doing it by cases command
My try:
r = Range[16];
Select[r, Mod[x^4,17] = -1]
but it doesn't work.
How can I do it?
2
votes
0
answers
314
views
Why is my module saying "cannot assign to raw object" when I run it more than once?
I am trying to solve the shortest path problem in Mathematica. My code looks like this so far. I first import the list.
...
0
votes
0
answers
51
views
How do I build a module that takes in graph data? [duplicate]
This is a homework problem I'm really struggling with. I'm supposed to program the shortest path problem in Mathematica. There are 100 nodes, each node has corresponding distances to 2-3 more nodes. ...
0
votes
1
answer
98
views
How do I utilise distance data from a text file?
I've been given a text file which looks like this -
node0, node1 0.04, node8 11.11, node14 72.21
node1, node46 1247.25, node6 20.59, node13 64.94
Where node0 is the first location, and each subsequent ...
-4
votes
1
answer
196
views
Finding solution to fourth order polynomial [closed]
I would have your opinion on this. So, we were assigned some questions to solve using the program Mathematica, but I am not sure how my teacher would like the solution to be presented.
Could someone ...