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
1
vote
1answer
56 views

Am I using DSolve correctly? [closed]

I'm new to Mathematica but I think I solved the problem shown below. I want to know if I solved it right. Your response will be much appreciated. ...
0
votes
0answers
19 views

How to disable autosimplification of boolean function? Or How to get Perfect Disjunctive Form?

In my university I have a task to get a perfect disjunctive form of a function in Mathematica, so I found necessary minterms and I want to get disjunction of them. I need to get 5 minterms, but I have ...
0
votes
1answer
116 views

Parametric Curves to cartesian equation

I have $x=t^2-3$ and $y=t+2$. I keep trying Eliminate and the output is always True. I just need to take these two curves and convert it to a Cartesian equation. ...
4
votes
2answers
234 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
2answers
119 views

Find the square root using a recursive formula [closed]

I want to approximate the square root x=Sqrt[a] for $a>0$ using the the formula $x_{n+1}=\frac{1}{2}(x_n+a/x_n)$. How can I do this?
-1
votes
1answer
41 views

Single toss of two dice [closed]

Does any one knows answer for this question related to probability? A pair of fair dice is tossed once. If the sum of the two numbers is greater than 9, the probability that one of the numbers is a ...
0
votes
1answer
98 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
1answer
60 views

Computing the average curvature of a curve [closed]

Compute the average curvature of the curve $\qquad r(t) = ⟨t \cos t,\, t \sin t⟩\ \mathrm{for}\ 0 ≤ t ≤ 2π$. Use Mathematica to arrive at an exact value and its numerical approximation. ...
1
vote
0answers
32 views

Need help with understanding a question concerning the power iteration method [closed]

I just need help understanding a question. I was given the question Use the power iteration method to estimate the spectral radius for (I - B A) given a tridiagonal coefficient matrix. Although,...
0
votes
1answer
73 views

Find the points closest to and farthest from the origin for a region in $\mathbb{R}^6$

Given $A$ being the intersection set between $x + y + z + u + v + w = 1$ and $x^2 + y^2 + z^2 + u^2 + v^2 = 1$, find the closest and farthest points to the origin that belong to $A$ in the space $\...
1
vote
0answers
63 views

How do I transform a 1st order logic formula into Skolem normal form? [closed]

I have a predicate calculus (1st order logic) problem. I have the formula $\qquad \forall x[\neg P(x) \land \forall y \neg Q(x,y) \rightarrow \forall x \forall y R(x,y,z)]$ I wamt to express this ...
0
votes
0answers
58 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
63 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
63 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
347 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
802 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 ...
0
votes
1answer
103 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 ...
-6
votes
1answer
87 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 ...
2
votes
2answers
166 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 ...
4
votes
4answers
6k views

The Lotka-Volterra predator-prey model

I have a Mathematica assignment where we need to numerically solve a Lotka-Volterra predator-prey population equations. $$\frac{dx}{dt}=ax-bxy,\quad\frac{dy}{dt}=-cx+dxy,$$ where $a,b,c,d\in\mathbb{R}...
3
votes
1answer
153 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
81 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
78 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
754 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
83 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
80 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
35 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
70 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
0answers
46 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
540 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
204 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
87 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
61 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
300 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 ...
-2
votes
1answer
297 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
85 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
107 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
468 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, ...
0
votes
1answer
101 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. ...
2
votes
1answer
283 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
80 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
271 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
159 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
87 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
63 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
230 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
61 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 ...
1
vote
2answers
188 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. ...