# 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.

244 questions
Filter by
Sorted by
Tagged with
32 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 ...
96 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: ...
116 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.
119 views

### Simpson's 1/3 Rule [closed]

Hi. I'm trying to figure out how to code Simpson's rule in mathematica.
91 views

### Newton's Method plot [closed]

I'm trying to do c. So far I tried, ...
311 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) ...
94 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
126 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
168 views

### Recreate specific plot in Mathematica

Can anyone help on this ? I did this ...
53 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 ...
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 ...
54 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 ...
52 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 ...
53 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 ...
346 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 ...
117 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 ...
95 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$.
65 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.
171 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 ...
66 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 ...
28 views

### Speed up my own Orthogonalize and QRDecomposition [duplicate]

I defined Gram-Schmidt like this: ...
122 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 ...
83 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 ...
69 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.
182 views

125 views

### Translating pseudocode for the Jacobi algorithm into Mathematica

Here is an image for the Jacobi algorithm. I have almost no knowledge of Mathematica, the textbook does not help. Does not provide examples. The class average is 64%. I just want to be able to ...
82 views

### Correcting error messages emitted by ListPlot

I have an assignment to use Module and in which I have to implement: The input of the program are a list of numbers and a list of strings Check whether every ...
79 views

### how to make my own PrimeQ function?

How can I create my own function that verifies if the number is a Prime without using PrimeQ ...
48 views

### Applying the command "expr/.rule", to find the expansion of Cos[a+b]

how can i find the expansion of Cos[a+b], using the expression g[f[{a,b}]].So i am specified to use one shot replacement to get the expansion by replacing the argument of the expression given. I tried ...
178 views

### How to plot a characteristic curve for silicon diode

There is a figure given that shows the relation between Forward current(y axis) and forward Voltage (x axis ) for a forward biased diode, with the given formula If(forward current)= I0*e^{(k*q*T*...
332 views

### For Loop to Sum numbers in a list

I'm asked to create a For[] loop that will sum positive numbers in a list. I am unsure of how to do this. ...
126 views

### Create a list of pairs [closed]

I am trying to take a list of pairs and manipulate the second element. The question is as follows Create a list of pairs of numbers and set the resulting list of lists equal to ...
208 views

### Lagrange Interpolation [duplicate]

I have the following table with 90 elements, and I want to write a loop that gives me the Lagrange operators. I want to construct an interpolation with Lagrange interpolation and show the loop to ...
39 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 ...
30 views

### Can I sample from a distribution whose parameters depend on the current iteration?

Let's say I want to sample from 100 Beta distributions, and in each successive one, the first parameter increases by 1. So given a current iteration number n, I ...
52 views

### Prove that these statements about the integer x: If 3x + 7 is even, then x + 3 is even [closed]

Then there exists some integer k where x=2k So 3x+7=3(2k)+7 6k+7 This is as far as Ive got.