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
0 answers
73 views

Suggestions for practice problems

As a first year student at IITM, we have a beginner course on Mathematica. For the end-semester examinations we need practice questions due to insufficiency of problems at hand, and I was wondering if ...
Dhruv Kaushik's user avatar
2 votes
0 answers
42 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
  • 53
1 vote
1 answer
144 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 ...
csn899's user avatar
  • 2,879
4 votes
1 answer
226 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 ...
Ratheesh's user avatar
  • 307
1 vote
3 answers
197 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 ...
sofia's user avatar
  • 21
0 votes
3 answers
73 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?
Mahmoud albahar's user avatar
1 vote
0 answers
134 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
44 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. ...
FlashWayneArrow's user avatar
0 votes
1 answer
62 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 ...
FlashWayneArrow's user avatar
-4 votes
1 answer
120 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 ...
bittscoterie's user avatar
2 votes
1 answer
65 views

Manipulate list

Make a Manipulate to display a column of integer powers with bases from 1 to 25 and exponents from 1 to 10. ...
Ratheesh's user avatar
  • 307
3 votes
2 answers
107 views

Finding the consecutive distance of n-dimensional points with Mathematica

I want to create a list of (n-dimension, average of points) with 10,000 points per n-dimension. I can't figure out how to take the distance of consecutive points. Say in 2-dimensions, there are 3 ...
mmfranco's user avatar
-1 votes
1 answer
64 views

A general term of this sequence [closed]

My question is about the set theory. I have c[0]={{1}} and i want to define c[n] as follows: ...
SKS's user avatar
  • 23
1 vote
1 answer
101 views

How to find the differential equation that has the solution $u=f(x+\frac{y}{z},y+\frac{x}{z})$? [closed]

I should use partial derivatives to find the differential equation that has the following solution: $ u=f(x+\frac{y}{z},y+\frac{x}{z})$.
user68119's user avatar
5 votes
2 answers
174 views

How to find each internal angles of an n-sided irregular polygon

The vectors given in problem are: p1 = {1, 2, 2}; p2 = {3, 1, 1/4}; p3 = {2, 3, 9/4}; p4 = {5, 2, 0}; p5 = {3/2, 5/4, 19/16}; Find all 5 of the (internal) ...
MJY's user avatar
  • 51
4 votes
2 answers
273 views

Numbers to binary and back

I am struggling on how to create a function that converts a number into binary and then back. I know there is a built-in function about this BaseForm[] but I am ...
peter21's user avatar
  • 61
2 votes
2 answers
69 views

Displaying FrameTicks of each function

Plot f(x) = x^3 and g(x) = 10e^(−x^2) on the same graph. Make a frame around the graph, show tick labels on all four sides, plot such that f(x)’s ticks appear on the left side of the plot and g(x)’s ...
tinycrocodileinthewater's user avatar
-4 votes
2 answers
195 views

Wolfram Mathematica Code please [closed]

Consider two natural numbers of two-digits, like 46 and 96. They have the property that by exchanging the place of their digits and multiplying the so obtained numbers, we get the same product; i.e., <...
victoria lafontaine's user avatar
-1 votes
1 answer
136 views

Van der Pol's equation [closed]

Consider the van der Pol equation below: (x′′)+c(x^2−1)(x′)+(x)=0 , which governs the flow of current in a vacuum tube with three internal elements. It can be written as the system x′= y , y′= -x-c(x^...
mohamad alsaleh's user avatar
1 vote
1 answer
160 views

Homework from studies! - module computation of an approximating function

Polynomial approximation The aim of the task: to write a program in the form of a module in the Mathematica® machine code computation of an approximating function F (·) for an approximated ...
KMbuuble's user avatar
0 votes
1 answer
345 views

Histogram Plot Gaussian Distribution

I have to construct functions to obtain random numbers from a Gaussian Distribution with mean $\mu$ and variance $\sigma^2$ by using box-muller method and testing the function by sampling from a ...
user avatar
1 vote
0 answers
95 views

Using Runge-Kutta to solve Black Scholes [duplicate]

I am given the Black Scholes equation as $$\frac{\partial c(t, s)}{\partial t}+\frac{1}{2} s^2 \sigma^2 \frac{\partial ^2c(t, s)} {\partial s^2} + r s\frac{\partial c(t, s)}{\partial s} − rc(t, s) = 0 ...
user avatar
1 vote
1 answer
205 views

Plotting a lefthand Riemann sum

Using Mathematica create a single graph that plots both the function a)$f(x)=\sqrt(x+4)$ on the domain $-4\leq x \leq4$ b) A visualization of a left-hand Riemann sum with 10 rectangles Here is my ...
J F's user avatar
  • 63
0 votes
1 answer
660 views

dot product and norm [closed]

Can you solve the following problem in mathematica program? Thank you. Let x=(x1,x2,x3),y=(y1,y2,y3) and ⟨x,y⟩=x1y1+2x2y2+x3y3 be an inner product in a three-dimensional real vector space. Define the ...
Hakan A.'s user avatar
1 vote
1 answer
210 views

Lotka-Volterra in mathematica

I have to solve the next problem: We know that a=b=c=d=1 and x0=2,y0=3,q=0.2,On the t=[0,20] interval there is no fishing but on the t=[20,40] interval there is.Show the adequate trajectory(the first ...
Birgitt's user avatar
  • 167
1 vote
1 answer
77 views

plot and volume of y^2+z^2=1 cut by the plane y=x and x=1 in the first quadrant

I need to plot and find the volume of y^2+z^2=1 cut by the plane y=x and x=1 in the first quadrant So far, ...
calcNoob1's user avatar
4 votes
2 answers
515 views

Euler-method implementation

How can I implement this pseudocode in Mathematica? Algorithm: ...
Birgitt's user avatar
  • 167
0 votes
1 answer
147 views

How to use every number between 2^50 and 2^100 without having to rewrite the code? [closed]

What I have currently written returns a numerical value and stores it in b100. p and q are random integers of size 2^50. I want to use the same code to calculate values where p and q ranges from 2^50 -...
Dyson'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
0 votes
3 answers
142 views

How to use a pure function to write following sum?

How to use a pure function to write following sum? I have tried to use FoldList, but it is still not working.
Udf Hx's user avatar
  • 11
0 votes
1 answer
572 views

Simpson's 1/3 Rule [closed]

Hi. I'm trying to figure out how to code Simpson's rule in mathematica.
Kassidy Moy's user avatar
0 votes
1 answer
158 views

Newton's Method plot [closed]

I'm trying to do c. So far I tried, ...
Kassidy Moy's user avatar
2 votes
2 answers
344 views

center of mass of a 2D square

Using Mathematica, find the center of mass of a 2D square not centered at the origin. center: (x0, y0) ...
user avatar
-3 votes
1 answer
135 views

Mathematica Linear Regression [closed]

How do I create a user-defined function for linear regression without using the built in function. Essentially doing the steps one by one
Kassidy Moy's user avatar
1 vote
0 answers
492 views

Calculating double integral bounded by domain in Wolfram Alpha Notebook [closed]

If I want to compute Double Integral on a given region(See attached Picture) How can I input this on Wolfram Alpha Notebook
Himu21's user avatar
  • 19
2 votes
2 answers
318 views

Recreate specific plot in Mathematica

Can anyone help on this ? I did this ...
user77551's user avatar
1 vote
1 answer
357 views

Mirroring the graph on the negative y axis

Another quick question, I have been trying to plot a phase plot, which has resulted in some issues. I know that there is a negative axis which it is also transposed on. However, when I include ...
Tim van schaik's user avatar
0 votes
0 answers
75 views

Function to determine number of trees surviving forest fire [duplicate]

How can I write two functions, each of which have as their argument an array mat of 0s (no trees), 1s (trees), 2s (burning trees), that can determine the trees that survived a forest fire, which run ...
jbl's user avatar
  • 337
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
53 views

Map and Module to convert numerical value to grade [duplicate]

I have an assignment due next week, I've answered all other questions except for this one. I am required to use Module and Map ...
Fayzah's user avatar
  • 1
0 votes
1 answer
57 views

Solve for not y = 0 but for y = n [closed]

Let’s see if I manage to explain this well enough. I need to find roots of an equation(let’s say a quartic) but not at the points where the slope crosses the $x$-axis (y = 0), like the ...
wavefunction's user avatar
5 votes
4 answers
493 views

Using the Tube function to create a torus from an equation for the curve

I've been searching for an answer for this for a while now, but I can't find anything that deals with using the Tube function to generate a torus from the equation of the torus. The equation of my ...
TubularHell's user avatar
4 votes
1 answer
134 views

How can I create a randomHop function that would return certain coordinates? [closed]

I've tried to create a function that's equal to a loop containing 4 if functions, one for each integer, but the result would not show the desired outcome. How can I go about doing this question? Write ...
jbl's user avatar
  • 337
0 votes
2 answers
170 views

How can I find equation of the tangent line for a curve given in polar form? [closed]

Basic calculus Please tell me how to find the tangent at $θ=π/3$ in the form $y=ax+b$ of the curve represented by $r=(r-\cosθ)^2$.
user732858's user avatar
0 votes
1 answer
270 views

How to find an equation of a line using Mathematica [duplicate]

(b) Find an equation of the secant line through $ (−2, f(−2)) $ and $ (−1, f(−1)) $. Define this line as $ fs1(x) $ in Mathematica.
Kasey's user avatar
  • 1
3 votes
1 answer
637 views

Adams-Bashforth method implementation code review

I have a program for Adams-Bashforth method and I want to do some tries to see if it's working properly but I don't know how to do it. My code for AdamsBashforth is ...
John hall's user avatar
0 votes
1 answer
92 views

Using conditions to construct a function [closed]

This is the hint my professor provided. We have 6 separate cases to define the function pow[x_ , r_]. The first case is where ...
Michelle's user avatar
0 votes
0 answers
33 views

Speed up my own Orthogonalize and QRDecomposition [duplicate]

I defined Gram-Schmidt like this: ...
John hall's user avatar
3 votes
3 answers
297 views

Get a triangle’s angles from the sides

Hint: For the SSS case, you are given the 3 sides a, b, and c, and need to find the corresponding angles α, β, and γ. To find α, for example, you solve the equation ...
Michelle's user avatar
0 votes
1 answer
98 views

Solving an exponential inequality in two ways

I would like to solve the following inequality E^x/x^1000 >= 2 without Reduce. Then I would like to solve it with ...
Michelle's user avatar

1
2 3 4 5 6