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
-4 votes
1 answer
99 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 ...
2 votes
1 answer
57 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. ...
3 votes
2 answers
89 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 ...
-1 votes
1 answer
57 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: ...
1 vote
1 answer
94 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})$.
4 votes
2 answers
138 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) ...
  • 41
4 votes
2 answers
157 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 ...
  • 61
2 votes
2 answers
68 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 ...
-4 votes
2 answers
162 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., <...
-1 votes
1 answer
104 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^...
1 vote
1 answer
156 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 ...
0 votes
1 answer
148 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 ...
's user avatar
1 vote
0 answers
94 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 ...
's user avatar
1 vote
1 answer
78 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 ...
  • 63
0 votes
1 answer
131 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 ...
1 vote
1 answer
130 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 ...
  • 155
1 vote
1 answer
69 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, ...
4 votes
2 answers
375 views

Euler-method implementation

How can I implement this pseudocode in Mathematica? Algorithm: ...
  • 155
0 votes
1 answer
145 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 -...
  • 31
2 votes
0 answers
101 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: ...
  • 21
0 votes
3 answers
128 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.
  • 11
0 votes
1 answer
273 views

Simpson's 1/3 Rule [closed]

Hi. I'm trying to figure out how to code Simpson's rule in mathematica.
0 votes
1 answer
110 views

Newton's Method plot [closed]

I'm trying to do c. So far I tried, ...
2 votes
2 answers
325 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) ...
's user avatar
-3 votes
1 answer
111 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
1 vote
0 answers
250 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
  • 19
2 votes
2 answers
188 views

Recreate specific plot in Mathematica

Can anyone help on this ? I did this ...
1 vote
1 answer
150 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 ...
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 ...
  • 327
0 votes
0 answers
55 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 ...
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 ...
  • 1
0 votes
1 answer
55 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 ...
5 votes
4 answers
431 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 ...
4 votes
1 answer
127 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 ...
  • 327
0 votes
2 answers
122 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$.
0 votes
1 answer
161 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.
  • 1
3 votes
1 answer
415 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 ...
0 votes
1 answer
84 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 ...
0 votes
0 answers
31 views

Speed up my own Orthogonalize and QRDecomposition [duplicate]

I defined Gram-Schmidt like this: ...
3 votes
3 answers
180 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 ...
0 votes
1 answer
88 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 ...
1 vote
1 answer
74 views

Half-life of a radioactive substance? [closed]

After 4.27 minutes 99.99% of a radioactive substance is present. What is the half-life of the radioactive substance? What code would I use to solve this problem? I don't know how to start it.
1 vote
1 answer
383 views

Fixed point iteration with While or Do Loop

I need to write a while or do loop to perform the iteration $x_{n+1}=Cos(x_n)$ with initial value $x_0=1$ and stops when the absolute value of the difference between two consecutive iterations is $|x_{...
-3 votes
1 answer
63 views

How can I solve this polynomial problem? [closed]

I'm very new to Mathematica. The only roots of a polynomial are 1, 2, 3, 4, and 5. The polynomial is positive on (-∞, 1), (1, 2), (4, 5) and negative on (2, 3), (3, 4), and (5, ∞). Give a polynomial ...
1 vote
3 answers
114 views

What commands would I use to solve this problem? [closed]

I'm new to Mathematica. Starting from left to right give the intervals of a constant sign and the sign of the following polynomial on those intervals. Finally, I have to illustrate your results in two ...
1 vote
2 answers
53 views

What does problem statement mean by "using the Table function"? [closed]

Can you help me on the following question? Generate the list {{0}, {0, 2}, {0, 2, 4}, {0, 2, 4, 6}, {0, 2, 4, 6, 8}} using the ...
  • 69
1 vote
5 answers
118 views

How to find the 2 smallest integers that is divisible by 40131 and 41405 [closed]

I'm trying to find the two smallest integers that is divisible by 40131 and 41405, i.e 40131|a, 41405|a, 40131|b and 41405|b. There is a hint within the question that says you can use FactorInteger[] ...
0 votes
1 answer
76 views

Computmg the powers of a complex number? [closed]

this is the complex number im dealing with zb=(1/7)* (Cos[Pi/3]+I Sin[Pi/3]) I need to represent for the first 10 powers in the plane. I also need to label the ...
  • 363
2 votes
2 answers
94 views

Given s family of quadratics, plot them and show the minima of each curve

family function x^2 - 2*(m - 2)*x + m - 2 a) Create a Manipulate to explore the behaviour of the functions of this family for m ∈ [-10,10]. Mark the minimum value ...
1 vote
2 answers
257 views

How to write more simple variable-step Runge Kutta algorithm to solve this differential equation?

Here is a case of Runge Kutta algorithm with variable-step size: ...

1
2 3 4 5 6