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.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
106 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'...
Sterling's user avatar
  • 523
3 votes
0 answers
186 views

Writing a function to set up and solve the least squares problem

I have setup the explicit line equation for a given set of points using least-squares approximation and the knots computed below. I have tried extending the same code for use with an arbitrary degree, ...
kranthi kumar's user avatar
2 votes
0 answers
41 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 $...
dcmpsr's user avatar
  • 31
2 votes
0 answers
103 views

How would I use Mathematica to solve this question?

Given the following matrix, A, that corresponds to a particular subset of the world wide web: ...
ANM's user avatar
  • 21
1 vote
0 answers
83 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. ...
FlashWayneArrow's user avatar
0 votes
0 answers
41 views

How to implement a bellman operator in Mathematica that takes in a matrix & current guess of cost to go, and updates it?

I am currently working on a homework problem (shortest path) that needs to take in a matrix I've created and spits out a cost to go function. We've been given the code in Python but need to change it ...
FlashWayneArrow's user avatar
0 votes
0 answers
56 views

Writing a function that has two inputs

Write a function called DOTPRODUCT that has two inputs u and v, assumed to be two non-empty lists of numbers of arbitrary length, checks that the two lists are of equal length, prints an error message ...
Kelsie Sonnek's user avatar
0 votes
0 answers
85 views

Solving multiple systems using Cholesky factorization to find Inverse of a matrix

I have a matrix: A = {{1, 1, 1, 1}, {1, 5, 5, 5}, {1, 5, 14, 14}, {1, 5, 14, 30}} I wrote code in Mathematica (mostly copying what professor gave us, I'm new to ...
Bogus's user avatar
  • 25
0 votes
0 answers
43 views

Finding the volume by rotating the region bounded by the curves $y=\sin(x)$, $y=0$, $x=0$, $x= \pi$ about $y=-1$

I would like to find the volume of the region obtained by rotating the region bounded by the curves $y=\sin(x)$, $y=0$, $x=0$, $x=\pi$ about $y=-1$. Calc 2 wasn't a strong suit of mine, so this ...
Claire's user avatar
  • 141
0 votes
0 answers
71 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] ...
Zahid Kumail's user avatar
0 votes
0 answers
53 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 $...
strange world's user avatar
0 votes
0 answers
106 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 ...
Милош Вучковић's user avatar
0 votes
0 answers
102 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 ...
Carlos Francisco Flores Paez's user avatar
0 votes
0 answers
83 views

Plot moments as a function of bin size?

I need to plot moments of a distribution as a function of bin size to show whether or not the tails of this data set are Gaussian. My data is in [pastebin.com/nzCs5BwE.][1] Here is how I've plotted ...
K. Schneider's user avatar
0 votes
0 answers
209 views

how to write the Max of this function / How can i use Max[]

Hi every one I really need your help in this question write the function in the picture nction in Mathematica because I need to make graph... ?? could anyone help me ? I'd appreciate some help. ...
Nabil Khossossi's user avatar