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
1answer
64 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 ...
-2
votes
0answers
35 views

Setting up a quadratic equation [closed]

Need help setting up the equation.
0
votes
0answers
42 views

Simultaneous solving equations [migrated]

It is a theorem in geometry that any three non-collinear points determine a circle. Given the three points (x1,y1),(x2,y2),(x3,y3) find a,b,and R for the circle (x-a)^2 +(y - b)^2 =R that passes ...
2
votes
2answers
74 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 ...
-5
votes
2answers
65 views

Table formatting problem [closed]

How can I solve parts c and d of the following problem?
2
votes
2answers
80 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 ...
0
votes
1answer
91 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?
0
votes
0answers
44 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 ...
-1
votes
1answer
40 views

Determining the acceleration of a particle [closed]

A particle travels along a straight line with a velocity of $V(t) = 3 e^{t/2}\,x\,\sin⁡(2\,t)$ m/s. Determine the acceleration of the particle at t = 2 seconds. V=3e^(0.5 t) x sin(2t) A=1.5^(0.5t) x ...
1
vote
2answers
63 views

How to use StreamPlot to plot the typical solution in this directional field?

How can I plot the typical solution in this directional field using StreamPlot? ...
2
votes
1answer
55 views

Writing a function to find ehe volume under$ |f(x,y)|$ over an area [closed]

I need to write a function to find the volume under a surface $|f(x, y)|$ and over an certain area. The output of the function is going to be the volume and a plot. For example: Given $|f(x,y)|=|3+x^2 ...
1
vote
1answer
107 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 ...
1
vote
1answer
51 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 ...
4
votes
1answer
75 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 ...
0
votes
1answer
44 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 ...
1
vote
1answer
85 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*...
3
votes
3answers
200 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. ...
1
vote
1answer
48 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
37 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 ...
1
vote
1answer
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 ...
1
vote
1answer
50 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.
0
votes
1answer
40 views

Problem with Real Digits and and getting the sum of digits [closed]

I want to find the sum of the digits of the first 30 000 multiples of 31. I started by first finding the multiples. Like this: ...
1
vote
2answers
176 views

Dice Rolling Simulation [closed]

I'm simulating a sequence of dice rolls by choosing a random integer between 1 and 6. I need to use FoldList to generate a function that returns a list which describes how the cumulative total varies ...
1
vote
0answers
55 views

Filtering Fibonacci numbers for elements meeting certain criteria [closed]

Write a code that selects in less than two seconds from every 123rd of the first 33,333 even Fibonaci numbers; those which contain the digits 2, 3, 6, 7, and 8 and also contains the digit 1 more than ...
2
votes
2answers
111 views

Tensor contraction

How do I let mathematica compute a tensor contraction like $\delta_{ab}\delta_{bc}$ with an output $\delta_{ac}$ efficiently? I tried TensorContract and TensorReduce but they were not helpful. ...
5
votes
1answer
163 views

How to plot trajectories of the Rossler System [duplicate]

This is my current homework problem. I have completed parts a and b, but am now stuck on part c. I'm not sure what it means by plot the trajectories with different initial conditions, nor am I 100% ...
0
votes
3answers
40 views

Recursive Function with conditionals [duplicate]

Function: I am to solve for $T_{12}(4.8), T_{24}(1.2)$, using If and Which functions. I started with this function and keep getting a recursion limit error: ...
3
votes
2answers
88 views

Converting numbers and expressions

Trying to create a rule to convert negative numbers/expressions positive. So far: f[-x_]:> f[x] Trying to extend this rule to floats such as -1.0 and ...
3
votes
2answers
108 views

Using Map to extract elements of a list

I am given this problem. ...
1
vote
1answer
99 views

Plot in Physical Space? [closed]

...
1
vote
1answer
62 views

Am I using DSolve correctly? [closed]

I'm new to Mathematica but I think I solved the problem shown below. I want to know if I solved it right. Your response will be much appreciated. ...
0
votes
0answers
23 views

How to disable autosimplification of boolean function? Or How to get Perfect Disjunctive Form?

In my university I have a task to get a perfect disjunctive form of a function in Mathematica, so I found necessary minterms and I want to get disjunction of them. I need to get 5 minterms, but I have ...
-1
votes
1answer
59 views

Single toss of two dice [closed]

Does any one knows answer for this question related to probability? A pair of fair dice is tossed once. If the sum of the two numbers is greater than 9, the probability that one of the numbers is a 6 ...
-2
votes
2answers
200 views

Find the square root using a recursive formula [closed]

I want to approximate the square root x=Sqrt[a] for $a>0$ using the the formula $x_{n+1}=\frac{1}{2}(x_n+a/x_n)$. How can I do this?
0
votes
1answer
63 views

Computing the average curvature of a curve [closed]

Compute the average curvature of the curve $\qquad r(t) = ⟨t \cos t,\, t \sin t⟩\ \mathrm{for}\ 0 ≤ t ≤ 2π$. Use Mathematica to arrive at an exact value and its numerical approximation. Please include ...
1
vote
0answers
49 views

Need help with understanding a question concerning the power iteration method [closed]

I just need help understanding a question. I was given the question Use the power iteration method to estimate the spectral radius for (I - B A) given a tridiagonal coefficient matrix. Although,...
0
votes
1answer
111 views

Find the points closest to and farthest from the origin for a region in $\mathbb{R}^6$

Given $A$ being the intersection set between $x + y + z + u + v + w = 1$ and $x^2 + y^2 + z^2 + u^2 + v^2 = 1$, find the closest and farthest points to the origin that belong to $A$ in the space $\...
2
votes
0answers
76 views

How do I transform a 1st order logic formula into Skolem normal form? [closed]

I have a predicate calculus (first-order logic) problem. I have the formula $\qquad \forall x[\neg P(x) \land \forall y \neg Q(x,y) \rightarrow \forall x \forall y R(x,y,z)]$ I want to express ...
0
votes
0answers
61 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] ...
1
vote
1answer
70 views

How can I animate two beads each sliding on its own frictionless rail? [closed]

I am told to animate two beads sliding on rails in Mathematica, but I am very confused on how to get a mass on a rail and it move up and down the rail.
4
votes
3answers
452 views

Dot products and For-loops

I'm taking a class where we're working with matrix applications inside of Mathematica. In this case, we're analyzing senatorial votes that have been numericized so that a value of 1 corresponds to "...
1
vote
1answer
2k views

How to solve Laplace transform question for a system in Mathematica

I know how to use the LaplaceTransform function but am struggling to do this with a system with two ODEs. This is my question: Use Mathematica and the Laplace ...
-6
votes
1answer
90 views

Write a function areaPerimeter[f,g,x] [closed]

Write a function areaPerimeter[f,g,x] which takes as input two polynomials f and g depending on the variable x, and does the following. If the curves y=f(x) and y=g(x) intersect at exactly two ...
0
votes
1answer
112 views

Derive a polygon from the midpoints of the sides of a given polygon [closed]

Write a function that creates a new figure (a new broken line) out of a given broken line. It would take as parameter a list of (max) 20 points representing the closed broken line. The output must be ...
2
votes
2answers
247 views

Euler's method initial value problem — how should I plot the solution?

We are given the following initial value problem: $\qquad y' = t\,e^{3\,t} -2\,y, \quad 0 \le t \le 1, \quad y(0)=0$ Use Euler`s method to approximate the solution to this initial value problem. In ...
3
votes
1answer
262 views

How do I plot a Laplace transform?

I have been looking everywhere for help on this issue and cannot find a solution that works. Here is the assignment. I have figured out how to find the Laplace transform, but I do not know how to ...
1
vote
1answer
86 views

Drawing an approximate visualization of an inequality using ArrayPlot

I need to write a function that returns graphic visualization of the two-dimensional figure described with equation: $\qquad P = \{(x, y) \in R^2: 4+2x < x^2+y^2<9\}$ I have to use the n x n ...
0
votes
0answers
42 views

Finding tangents and curvature of a parametric curve in 3D [duplicate]

I am in a calculus 3 class and cannot figure out how to get Mathematica to solve for unit tangent, normal tangent, binormal tangent, and curvature without getting a supper messy result. This is the ...
0
votes
1answer
106 views

Monte Carlo simulation using modified rejection technique

Plot the probability density function $\qquad w(x)=(1/(1+x^2))(1/x^{0.5})$ for $(0 < x < 1)$ Make up the subroutine flowchart to get the random numbers $x$, using the modified ...

1
2 3 4 5