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 votes
1 answer
52 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: ...
user avatar
1 vote
1 answer
90 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})$.
user avatar
4 votes
2 answers
128 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) ...
user avatar
  • 41
4 votes
2 answers
135 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 ...
user avatar
  • 61
2 votes
2 answers
63 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 ...
user avatar
-4 votes
2 answers
156 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., <...
user avatar
-1 votes
1 answer
99 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^...
user avatar
1 vote
1 answer
152 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 ...
user avatar
1 vote
1 answer
107 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
91 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
68 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 ...
user avatar
  • 63
0 votes
1 answer
90 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 ...
user avatar
1 vote
1 answer
118 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 ...
user avatar
  • 145
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, ...
user avatar
3 votes
2 answers
348 views

Euler-method implementation

How can I implement this pseudocode in Mathematica? Algorithm: ...
user avatar
  • 145
0 votes
1 answer
144 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 -...
user avatar
  • 31
0 votes
0 answers
33 views

Converting a given region to a unit square with double integral

I have to write 4 equations.I am listing their code below.I am asked to convert the region obtained from these 4 equations to unit square.I have developed a code but I am getting an error. Can you ...
user avatar
  • 1
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: ...
user avatar
  • 21
0 votes
3 answers
121 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.
user avatar
  • 11
0 votes
1 answer
214 views

Simpson's 1/3 Rule [closed]

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

Newton's Method plot [closed]

I'm trying to do c. So far I tried, ...
user avatar
2 votes
2 answers
316 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
104 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
user avatar
1 vote
0 answers
218 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
user avatar
  • 19
2 votes
2 answers
176 views

Recreate specific plot in Mathematica

Can anyone help on this ? I did this ...
user avatar
1 vote
1 answer
120 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 ...
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 ...
user avatar
  • 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 ...
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 ...
user avatar
  • 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 ...
user avatar
5 votes
4 answers
418 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 ...
user avatar
4 votes
1 answer
121 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 ...
user avatar
  • 327
0 votes
2 answers
112 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$.
user avatar
0 votes
1 answer
123 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.
user avatar
  • 1
3 votes
1 answer
334 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 ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
0 votes
0 answers
31 views

Speed up my own Orthogonalize and QRDecomposition [duplicate]

I defined Gram-Schmidt like this: ...
user avatar
3 votes
3 answers
166 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 ...
user avatar
0 votes
1 answer
87 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 ...
user avatar
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.
user avatar
1 vote
1 answer
343 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_{...
user avatar
-3 votes
1 answer
61 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 69
1 vote
5 answers
117 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[] ...
user avatar
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 ...
user avatar
  • 363
2 votes
2 answers
92 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 ...
user avatar
2 votes
2 answers
637 views

How can I fix my Simpson's rule integration code?

I was tasked with writing a function on Mathematica similar to NIntegrate, but that uses the Composite Simpson's Rule as its method for doing the calculation. The ...
user avatar
0 votes
1 answer
192 views

Solving particular case of Bernoulli Equation [closed]

I have a Bernoulli equation (attached below). It needs to be converted to ODE. I tried to solve it by a separation of variables, but I could not. Can anyone help me with the code for this, please?
user avatar
0 votes
0 answers
59 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 ...
user avatar
  • 25

1
2 3 4 5 6