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.

Filter by
Sorted by
Tagged with
0
votes
0answers
54 views

Numerical solution of a PDE having boundary conditions

I am solving a PDE using Mathematica. and I would like to know how to implement the condition that the three-variable function u[t, x, z] ...
0
votes
0answers
55 views

How to do this numerical integration via Simpson’s rule?

this is the question. Develop a code to perform a numerical integration for the following functions using Simpson’s rule. You must implement the algorithm in the form of a Module[ ]. Partition the ...
1
vote
1answer
60 views

How can I animate two beads each sliding on its own frictionless rail? [closed]

I am told to animate two beads sliding on rails in Mathematica, but I am very confused on how to get a mass on a rail and it move up and down the rail.
4
votes
3answers
333 views

Dot products and For-loops

I'm taking a class where we're working with matrix applications inside of Mathematica. In this case, we're analyzing senatorial votes that have been numericized so that a value of 1 corresponds to "...
1
vote
1answer
243 views

How to solve Laplace transform question for a system in Mathematica

I know how to use the LaplaceTransform function but am struggling to do this with a system with two ODEs. This is my question: Use Mathematica and the Laplace ...
-6
votes
1answer
86 views

Write a function areaPerimeter[f,g,x] [closed]

Write a function areaPerimeter[f,g,x] which takes as input two polynomials f and g depending on the variable x, and does the following. If the curves y=f(x) and y=g(x) intersect at exactly two ...
0
votes
1answer
102 views

Derive a polygon from the midpoints of the sides of a given polygon [closed]

Write a function that creates a new figure (a new broken line) out of a given broken line. It would take as parameter a list of (max) 20 points representing the closed broken line. The output must be ...
2
votes
2answers
146 views

Euler's method initial value problem — how should I plot the solution?

We are given the following initial value problem: $\qquad y' = t\,e^{3\,t} -2\,y, \quad 0 \le t \le 1, \quad y(0)=0$ Use Euler`s method to approximate the solution to this initial value problem. In ...
3
votes
1answer
122 views

How do I plot a Laplace transform?

I have been looking everywhere for help on this issue and cannot find a solution that works. Here is the assignment. I have figured out how to find the Laplace transform, but I do not know how to ...
1
vote
1answer
78 views

Drawing an approximate visualization of an inequality using ArrayPlot

I need to write a function that returns graphic visualization of the two-dimensional figure described with equation: $\qquad P = \{(x, y) \in R^2: 4+2x < x^2+y^2<9\}$ I have to use the n x n ...
0
votes
0answers
39 views

Finding tangents and curvature of a parametric curve in 3D [duplicate]

I am in a calculus 3 class and cannot figure out how to get Mathematica to solve for unit tangent, normal tangent, binormal tangent, and curvature without getting a supper messy result. This is the ...
0
votes
1answer
66 views

Monte Carlo simulation using modified rejection technique

Plot the probability density function $\qquad w(x)=(1/(1+x^2))(1/x^{0.5})$ for $(0 < x < 1)$ Make up the subroutine flowchart to get the random numbers $x$, using the modified ...
3
votes
2answers
455 views

For Loop and Sum

I am requested to do a sum of the first fifty positive even numbers by using For loop. The For loop that I created is ...
0
votes
1answer
81 views

Interval determination with mathematica [closed]

I am given the solution y=yo/(1-yo x^2). If yo>0, the solution is valid only on ( -1/sqrt(yo), 1/sqrt(yo) ). How is this determined? I need a proof like answer and I need it programmed in ...
0
votes
1answer
70 views

Creating matrices using a Do-loop

Here is an image of current assignment; I am not able to do step 6 to 8 When I try to do the Do-loop, it states that the {i, j} does not have appropriate bounds. ...
1
vote
1answer
30 views

Why are these arrows not plotting?

I'm very new to mathematica, so pardon me for such a simple question. I have tried to follow the syntax of the "Arrow" documentation(https://reference.wolfram.com/language/ref/Arrow.html), but I ...
1
vote
2answers
67 views

How can I make an arrow's shaft more visible?

{Graphics[{Arrowheads[.1], Arrow[{{0, 0}, {2, 1}}]}], Graphics[{Arrowheads[.1], Arrow[BezierCurve[{{0, 0}, {1, 1}, {2, 0}}]]}]} say I have the above code. Can I ...
0
votes
1answer
82 views

Make Arrows Smaller

I have the following program that describes a 3D curve in space with an osculating circle and TNB vectors moving with the curve. The arrows indicating the TNB vectors are way too large making it seem ...
0
votes
0answers
43 views

Devise a compact storage mode

I am writing a code for solving a symmetric band matrix by Cholesky decomposition. I need to store the matrix by defining only the non-zero diagonals of the matrix not the full matrix with band size $...
0
votes
1answer
184 views

How do I plot x as a function of y?

I am new to mathematica so this might so this might be a silly question. Im in cal 2 and im doing this problem: Use cylindrical shells method to find volume of revolution of region bounded by x = ...
1
vote
3answers
174 views

Another way to calculate frequency from Fourier transform

I have some trouble with calculating frequency after Fourier transform. My code: ...
0
votes
1answer
46 views

How to write a command that produces such a matrix that takes n as an argument, where every node has probability 1/m [closed]

Please help in answering the questions above on mathematica. Which commands do I use to answer the question?
0
votes
1answer
79 views

Solving system of equations for coordinates

This is my first time here, so let me know if there's something I need to add to the post etc. Anyway, I need some help with Mathematica and linear algebra, and I got some tips that this would be the ...
3
votes
0answers
54 views

Plotting gradient and newton directions for parametric system of nonlinear ODEs

I have a bucket (system) of chemical kinetics models, a nonlinear dynamical system given by: where kf >= 0 and kr >= 0 are the parameters. The initial conditions are A(0) = B(0) = 1 and C(0) = 0. I'...
0
votes
1answer
280 views

Translating the Newton-Raphson method from Matlab to Mathematica

I am trying to optimize the variables of two (or three depending on how you think about it) matrices using the Newton-Raphson Method. I made the bottom code in Matlab. The code is pretty simple it ...
4
votes
2answers
210 views

How to check whether Laguerre polynomials are orthogonal?

I've got the problem with checking if Laguerre polynomials for n=1,...,10 are orthogonal. I have to create the list of these polynomials, then create the matrix of integrals from 0 to infinity. ...
-2
votes
1answer
162 views

How can I plot a surface in cylindrical coordinates? [closed]

The surface I want to plot is $z^2 + r^2 = 25\, \theta$. Please tell me how to do it in Mathematica.
0
votes
0answers
68 views

Application of ODE

I got to do some assignment for my Student Research. 1. Cat and mouse are in room which is shape in sqare . Cat is in one topic square, mouse in another one. In topic square oposite than cat position ...
-4
votes
2answers
75 views

Basic Supply and Demand Question [closed]

Suppose that the quantity supplied S and the quantity demanded D for the price p of t-shirts are given by the following functions S(p) = −800 + 50p D(p) = 1900−40p Determine the prices for ...
5
votes
1answer
456 views

An efficient way to translate a triple for-loop from Matlab to Mathematica

This is my first post on StackExchange, so if I violate any etiquettes, I apologize in advance. I am a senior engineering student who has been using Mathematica for a year now. For one of my classes, ...
2
votes
1answer
178 views

Analyze stability of equilibria using Routh-Hurwitz conditions

For an assignment, I need to analyze the stability of a system very close to equilibrium, using "Routh-Hurwitz conditions". I have already obtained the characteristic equation of my system, but I do ...
0
votes
1answer
95 views

Simulating the motion of the Earth around the sun based on Kepler’s laws

I am using Mathematica 10.3. I want fo perform a computational analysis of the motion of the Earth around the sun based on Kepler’s laws. Here is my code so far. ...
0
votes
1answer
79 views

Solve won't return an answer for a set of four equations

So I was doing my homework and this system popped up, so I was trying to solve it but Mathematica has just been stuck with it for two days. It won't give me an answer. I am trying to get the code to ...
3
votes
1answer
230 views

Newton's Method

Problem statement: I'm currently new to Mathematica and have been trying to solve this problem. I was digging around and found this code: ...
3
votes
3answers
142 views

Infinite While loop

I have an exercise where I need to input a multi-digit number and evaluate the square of the sum of its digits. I am new to Mathematica and I can't figure out why I'm getting an infinite loop. This is ...
0
votes
1answer
68 views

Solving and plotting a linear initial value problem [closed]

As my first Mathematica assignment, I need to solve and then plot a linear IVP. I understand that I must use DSolve. However, when attempting to plot my output, ...
0
votes
0answers
58 views

Frequencies for Fourier coefficients [duplicate]

I have been given the task of calculating the frequencies to which the fourier coefficients correspond. So my input is a discrete signal [1,4,0,1], which gives me <...
1
vote
1answer
190 views

Using a numerical solver to solve a system of ODEs [closed]

Consider the competition model defined by dx/dt = x (2 − 0.4 x − 0.3 y) dy/dt = y (1 − 0.1 y − 0.3 x) Where the population x(t) and y(t) are measured in the thousands and t in years. Use a ...
2
votes
2answers
60 views

Need help in dealing with messages from Solve and Reduce [closed]

I have a two part question, I am trying to solve what should be a very straightforward equation, but I keep getting messages. Here is the equation ...
0
votes
2answers
150 views

Creating a CDF file from a Manipulate expression

I have created a code in Wolfram Mathematica. I want it to be CDF file. I selected File-> CDF Export -> Standalone. I was told that the file doesn't work but I don't know why. ...
1
vote
4answers
114 views

Contourplot, how to make a circular area?

I am trying to illustrate this math problem with a graph. I tried several things, amongst other: ...
2
votes
2answers
87 views

Illustrate homework (integral region with implicit region)

I must integrate: $$ \int \int_D x^2y^2 dx dy$$ in the first quadrant. This is a triangle with vertices in $(0,0)$, $(0,1)$ and $(1,0)$. I tried to draw it in mathematica with implicit region: <...
0
votes
2answers
128 views

Double integral [closed]

I am trying to use mathematica to verify a math problem which is a double integral: $$\int \int_D (3x+4)^4 \delta x\delta y$$ with $$0 \leq x \leq 4, 0 \leq y \leq 4,$$ I tried the following: -...
0
votes
1answer
39 views

Drawing function that rotates around y-axis with coordinate transform

At last I solved a math problem and trying to illustrate it in Mathematica TO NOT FORGET. I used that code. I works and I get a cake-form. But I think it's missing a big $x$ and a big $y$ axis in the ...
4
votes
3answers
502 views

Area of volume of revolution

I want to calculate the exact area of this volume: RevolutionPlot3D[ f[x_] = Sqrt[28 x] , {x, 0, 21} , Axes -> True ] Additionally, I wish to see $x$ and $...
0
votes
1answer
41 views

Rationalize number

I must calculate the critical point on the function f[x_] := (x^2 - Abs[x - 10])/(x - 5) After plotting, I looked for the minimum where it looked to be (around ...
0
votes
1answer
85 views

Trying to generate random even number

I am trying to generate a random even number, and then try to write the list of primes that are composing it as Goldbach conjecture says. It's just a test to learn how to use mathematica, so I would ...
0
votes
0answers
51 views

Creating a 3D version of the rule 90 cellular automaton

I need help. I want to create a 3D version of the rule 90 cellular automaton, but I don't know how to do it. Please help me. It is for a class in the theory of chaos. this is my code ...
1
vote
2answers
140 views

Solve trig equation

I have a simple trig equation: Clear[f, x] f[x_] = Cos[2*x] - 3 Sin[x] + 2 Solve[f[x] == 0, x] I received a very long a complicated reply that I do not ...
1
vote
1answer
84 views

For what values of $k$ is matrix invertible

I want to know what value $k$ can not be for the matrix A = {{4, 0, 2}, {-1, 2, 0}, {3, 1 , k}} to have an inverse (be invertible). I now you use the ...