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

learn more… | top users | synonyms

-4
votes
1answer
62 views

what is wrong with this plotting code? [closed]

Heres the question: The region bounded by f(x) = x+2 and g(x) = sin(x) between x = 0 and x = Pi/2 i. Plot the region on the interval [0,Pi/2], between y = 0 and y = 4. ii. Find the area of the ...
0
votes
1answer
78 views

How to find roots using the bisection method [duplicate]

First I plot the function and then I try to find a domain such that I can see the curve cut through the x-axis. I do this via trial and error ...
0
votes
1answer
65 views

Poisson point distribution

The probability of n telephone calls received at an exchange in a time frame (t_i, t_f ) is given by the Poisson point distribution: ...
1
vote
1answer
74 views

Plotting a table with varying step sizes

how can I plot the below green curve? Is there any way I could manipulate the step sizes? This is my current code: ...
4
votes
2answers
134 views

Use Select to filter a dataset's sublists

In the following Dataset, I want to use Select to display only rows, which contain numbers in column ...
1
vote
1answer
104 views

Module that prints first m positive odd integers and returns the square root of the sum of them

I am working on this problem and I feel like I've come so close. Write a module that takes as input a positive integer m, prints the first m positive odd numbers and returns the square root of the ...
3
votes
2answers
195 views

Plotting the solutions of $y' = -\frac{\cos y}{\sin x}$

I struggle with the problem of plotting the solution of this ODE: $\qquad y' = -\frac{\cos y}{\sin x}$ I've already tried to use ContourPlot in a loop and in a ...
-1
votes
2answers
117 views

Numerical approximation using trapezoidal formula [closed]

I have bumped into a problem, that I cannot solve. I have to approximate the value of ln3 using a composite trapezoidal formula, so that the error should be within (10)^-3! How can it be solved?
-2
votes
1answer
71 views

calling multiple functions in manipulate [closed]

Continuation Manipulate function to generate outliers I want to call a function in the manipulate environment so that the changing data is fed to another function and both the plots are plotted in a ...
-1
votes
1answer
71 views

Why does the asterisk go up when you switch from input to another mode? [closed]

So my teacher said that if we solved this question we would get extra credit (please tell me if I'm being too vague and I will clarify) When you change from the input to the regular text mode in ...
0
votes
1answer
134 views

Plotting Graph of Zeno paradoxes

Zeno Paradoxes is about a Greek Heroes Archilles having a race with tortoise. the tortoise given a head start distance. Greek heroes Archilles have constant speed ...
0
votes
1answer
65 views

Statistics question! I am new here! And I am STUMPED on the Dice rolling question! [closed]

I am new here! I need some help! A regular dice has six faces, with numbers 1, 2, 3, 4, 5, and 6. A typical roll of a dice will land on one of the 6 faces, and the number that is displayed can be ...
3
votes
0answers
96 views

Writing a function to set up and solve the least squares problem

I have setup the explicit line equation for a given set of points using least-squares approximation and the knots computed below. I have tried extending the same code for use with an arbitrary degree, ...
3
votes
1answer
294 views

How can I make a pretzel shape using Bézier curves?

I am trying to make a pretzel shape,but I cannot seem to get the loops even. Eventually, I need to make the pretzel shape loop in 3D so I need to nail the 2D concept first. Here's what I have so ...
-1
votes
1answer
111 views

How to input functions into Mathematica [closed]

I need help with this assignment like asap. I've never been taught how to use this program and our math department expects us to learn how to use it, but it is just so complicated!!! Please help me ...
7
votes
2answers
414 views

Check homework integration in Mathematica

Given in my homework I have to compute (by hand) $$\iint\limits_{x^2+y^2\leq 1}(x^2+y^2)\,\mathrm dx\,\,\mathrm dy.$$ My solution so far: Let $f(x,y)=x^2+y^2$ and $K=\{(x,y)\in\mathbb{R}^2:x^2+y^2\leq ...
1
vote
1answer
90 views

Find Values of a and b for a Limit

I am having trouble finding the values of a and b for which $\lim \limits_{x \to 0}$ $(\frac{\sin (ax) + bx)} {(x^3)}) = -32/3 $. In Mathematica I have entered: ...
3
votes
2answers
228 views

Exercise using Sort

I have to order the following list according to the sum of the powers of each element of the list, using the function Sort. ...
11
votes
7answers
2k views

How to make a resizable chess board?

For some reason I need to create a chess board. I can create a chess board by following command: ...
-2
votes
2answers
113 views

Question about plotting

I would like to duplicate this graph: I've used this code to draw the circle: Graphics[{Circle[{0, 0}, 3, {-2Pi, 2Pi}]},PointSize[.025]] But Mathematica ...
-2
votes
1answer
76 views

solve Z of matrix [closed]

x=Cz+(lambda)z x and z are n*1 column vectors C is n*n matrix (lambda) is a scalar it want to solve for z. the hint is z=Iz where I is n*n also C+(lambda) is an invalid expression, but C+(lambda)I ...
0
votes
1answer
208 views

Using Plot and Piecewise to graph a roller coaster

I am graphing a roller coaster using Piecewise and Plot commands on Mathematica. I have the first 2 Piecewise functions and would like to add a loop to the end of it. Here is my initial graph: This ...
0
votes
1answer
286 views

Power series graphs?

I would like to graph this function and its first 6 Taylor polynomials on the same axis, but I'm not sure how to start: f[x_] = Exp[x]; Plot[f[x], {x, 0, 1}]
0
votes
1answer
128 views

Fourier series of the odd extension of a function [duplicate]

Using Mathematica to make a plot, I noticed that the interval it's defined over must be changed in order to do the Fourier series. How do I change the interval to be on an interval of $[-{\cal l}, ...
2
votes
1answer
72 views

Calculate the partial vapor pressures of a variable at xB = 0.75 based on the interpolation functions of the data

I'm having troubles in solving an exercise for an assignment in my Chemistry course. Talking about interpolations, I've already have a graph but I need to calculate the partial vapor pressures of ...
2
votes
4answers
312 views

Print all numbers from a sequence which don't contain the digit 7

so i have this: Cases[RecurrenceTable[{a[n + 1] == 7 a[n] + n, a[1] == 1}, a, {n, 7}], Except[7]] But i noticed that it will only exclude numbers that are 7, and ...
0
votes
2answers
128 views

recurrence equation, result members don't contain the number 5 [closed]

print the first 5 members of the array a[n+1]=3*a[n]+7 which don't contain the number 5. a1=6. so a[2]=3*6+7=25, but 25 has the number 5 so we go to a[3]. a[3]=25*3+7=82 <--- this is OK... and ...
3
votes
3answers
124 views

Minimizing Multiple Functions

I'm trying to write a script that will minimize a given set of functions. The homework problem I've been given lists a set of dietary information, and I'm supposed to build the optimal salad based on ...
1
vote
1answer
182 views

Evaluate $\pi$ using While

I am given the following exercise: Evaluate $\pi$ using the formula $\pi = 4 - \sum_{n=1}^{\infty} (-1)^n \frac{4}{2n +1}$ with precision $\epsilon = 0.0001$. First I defined the function I need ...
0
votes
2answers
204 views

Least Square Fitting

stuck on a mathematica assignment and could really use some help. A) Fit a function with the shape log(Y) = a0 + a1log(U) to the datapoints (log(Ui), log(Yi) with an least square fitting. Show this ...
5
votes
1answer
523 views

How to plot the solution of a Partial Differential Equation?

My attempt. I need to solve numerically the Complex Ginzburg-Laudau Equation (CGLE): $$ \frac{\partial A}{\partial t}=\epsilon A-(1+i\beta)|A|^2A+(1+i\alpha)\nabla^2A $$ I'm using a uniform initial ...
2
votes
3answers
162 views

Finding primes that have certain property

Let S[p] denote the sum of digits of p. A prime p is said to be stubborn if none of ...
1
vote
1answer
108 views

How to do predicate logic in Mathematica

I'm trying to formalize and analyze the following reasoning: All equilateral triangles are isosceles triangles. Some triangles are not equilateral triangles. Therefore some triangles are not ...
0
votes
1answer
112 views

Replace notebooks and pens with Mathematica? [closed]

I use Mathematica for math homework/learning. I'm trying not to use it for solving equations I should be solving by myself to get homework done faster and not learn anything. I think I can (and ...
-3
votes
1answer
134 views

Miller-Rabin algorithm [closed]

I want to implement the Miller-Rabin algorithm in Mathematica to check if a number is prime with at least 99.99% probability. I used this: ...
1
vote
3answers
485 views

Sketch a cone and its base

A cone is the union of a set of half-lines that start at a common apex point and go through a base which can be any parametric curve. Show that the graph of z = ( x ^2 + 4y ^2)^(1/2) is a cone. What ...
7
votes
3answers
400 views

Generating a polynomial that's accurate to within an error of no more than 1/10^5

I'm currently stuck on a question for class that asks... "Find a polynomial p[x] that you can use to calculate 6 ArcTan[x] to ...
1
vote
2answers
238 views

GPA calculation from a set of randomly generated marks obtained

So, this is a homework question posed by my teacher: "A student has 10 courses. Find the ceiling value of the obtained marks and corresponding grade according to the following data Print the result ...
0
votes
1answer
111 views

AstronomicalData not including units?

I like using mathematica to do my physics homework, and AstronomicalData is useful for that, but it doesn't seem to work properly with units. [the question is, at ...
2
votes
1answer
236 views

Finding maximum value with LinearProgramming command

So here is a HW problem I was assigned: *Thriftem Bank is in the process of devising a loan policy that involves a maximum of $12 million. The following table provides the pertinent data about ...
2
votes
2answers
559 views

Using RegionPlot3D to make a cone under restrictions

I have to plot a cone that satisfies this statement: Use the RegionPlot3D command to draw a picture of a cone with its point at the origin. The other end of the cone is a circle with radius 5 ...
1
vote
1answer
447 views

Frequency of elements in a list (merging tally data) [duplicate]

I've got a list in the format of list={{a,1},{a,1},{b,1},{c,1},{b,1}} And I want it to "compress" into a list of pairs ...
18
votes
4answers
12k views

Finding unit tangent, normal, and binormal vectors for a given r(t)

For my Calc III class, I need to find $T(t), N(t)$, and $B(t)$ for $t=1, 2$, and $-1$, given $r(t)=\{t,t^2,t^3\}$. I've got Mathematica, but I've never used it before and I'm not sure how to coerce ...
0
votes
3answers
950 views

Solving One Equation with Two Variables

I am trying to solve an equation with two variables. It is the last step in the process of using the method of undetermined coefficients to solve a nonhomogeneous differential equation. The equation ...
0
votes
2answers
125 views

I have the roots; how can I find an equation that they will satisfy?

I have two solutions; I want is to find an equation that these solutions satisfy using mathematica. The solutions are $x= \frac{{(26-k)}^2}{26}$ and $y= \frac{{k}^2}{26}$. I know by hand computing ...
2
votes
1answer
162 views

Formatting ANOVA table and/or ParameterTable without using Grid?

Does anyone know if there is an option or function that can automatically format the output of ANOVATable and ParameterTable, ...
2
votes
1answer
648 views

Handling ± in a set of equations

First let me post the question that I am doing: You see for wave equation y2, there is a ± sign. I know how to do + or ...
2
votes
1answer
205 views

Plotting and ContourPlot

Make a Plot and a ContourPlot that gives the same diagram and use ContourPlot on a ...
0
votes
2answers
181 views

Fraction of fibers that have failed

I have the following to set into mathematica. Assume a stress(sigma) applied on a specimen which has a number of fibers within it. All fibers that have a strength less than the applied stress should ...