# Questions tagged [education]

Questions about the use of Mathematica/WL in education and/or about teaching Mathematica, or learning it.

127 questions
Filter by
Sorted by
Tagged with
16 views

### How to implement a function within a function for Newton's method?

I have to evaluate different versions of Newton's method and the article where those equations come from have function defined within the method. For eg. ...
45 views

### Step by step solution of a limit of a sequence - Calling Wolfram|Alpha in Mathematica

I'd like to visualiza the step-by-step solution of the following limit by calling Wolfram|Alpha in Mathematica, but I don't know how to specify that n is a positive integer variable: ...
24 views

### Exhaustive search by using a tree without specifying all the nodes

I'm trying to draw a tree to visualize an exhaustive search without specifying all the nodes' positions in the graph. For example, I'd like to build a tree so that, given n=4 objects, the nodes with ...
54 views

### How to interpolate a set of points with given local extrema?

I have a set of points on the 0xy plane: say (-3,0), (-2,4), (-1,0), (1,2), (3,0), (5,1), (6,0), (8,-2), (10,0) I would like to use software, like Mathematica, ...
64 views

### How to express a 2nd order ODE as 1st order ODE's? [duplicate]

Is there a built-in function that expresses a 2nd order ODE as 1st order ODE's? If not, how can one decouple a 2nd ODE to a first-order one using Mathematica? I couldn't find it here: Why is NDSolve ...
68 views

### Factoring after polynomial long division [closed]

I have gotten the code to do polynomial long division, but I want my students to also factor the solution if possible.
50 views

### Editing the Horner's method demonstration

The following code is from the Mathematica demonstration of Horner's method, I am wondering if anyone can help me remove the 2nd row in the table of the demonstration ...
39 views

### How to make a StyleSheet with certain text in some cell types like Subsection, Subsubsection and alike? [duplicate]

I am modifying several StyleSheets to adapt them to convenient use at school. Now I am working on the StyleSheet for Mathematics classes. I would like to make several types of default headings on the ...
46 views

### Non-linear ODE from closed-loop system and Response (Part II)

I again need help with the Mathematica. We have the following affine system. I need to get expressions describing the changes of $x_{1} \left( t \right)$ or $x_{2} \left( t \right)$. The only thing ...
40 views

### Solving a specific equation in Mathematica & Finding the range of a value in an inequality

Is there any way to solve (or even approximate the value of x) the following equation in Mathematica? ...
64 views

### Solve a Differential equation analytically instead of numerically

I want to solve the differential equations (shown below in the list 'eqs') analytically instead of numerical. Using NDSolve the following code works perfectly fine but using DSolve it doensn't. I ...
584 views

### How to use Mathematica in AWS cloud?

I have a free account in AWS cloud for 1 year for $750$ hours. How to run Mathematica in AWS cloud? And is Mathematica chargeable in AWS cloud?
31 views

### Define a function when given a graph with points (0,3),(2,5),(10,4),(6,2) [closed]

Define a function when you are given a graph with points (0,3),(2,5),(10,4),(6,2)
39 views

### Limit function and DirectedInfinity as output: Interpretation

I tried to compute the following limit: In[12]:= Limit[-A/2 x - 2 x, x -> +Infinity] Out[12]= DirectedInfinity[-2 - A/2] Does the output tell me that the ...
82 views

### How to do this numerical integration via Simpson’s rule?

this is the question. Develop a code to perform a numerical integration for the following functions using Simpson’s rule. You must implement the algorithm in the form of a Module[ ]. Partition the ...
382 views

### How can I obtain and work with a Platonic dodecahedron?

I want to obtain and work with a Platonic dodecahedron like this one: http://comsics.usm.my/tlyoon/teaching/ZCE111/1819SEM2/projects/Dodecahedron_platonic4.gif I dont have basic knowledge needed to ...
378 views

### How to do this Padovan spiral using Mathematica?

how to do this unusual pendovan spriral? can anyone help me ?
1k views

### How to verbalise code in Mathematica?

How do you read an expression like? x + y /. x -> 2 Looking up /. and -> in Mathematica docs it says ReplaceAll and Rule. But you would not pronounce the ...
118 views

### Individualised test paper generation (and marking)

I would like to use mathematica to create individualised tests that can be printed out for students to complete(handwritten). I would also like to be able to generate individualised printed answers. ...
87 views

### Cause of loop inefficiencies? [closed]

While I have seen a lot of documentation regarding the inefficiencies of loops in Mathematica, I am still curious as to why-- while I know it is intentionally developed this way to allow for improved ...
57 views

### Piecewise function inside Integrate - Wrong result

I tried to evaluate the following integral: ...
95 views

### Verifying equality $(\vec a \times \vec b)^2 = \left| \vec a \times \vec b \right| ^2$

I'm trying to verify the equality $(\vec a \times \vec b)^2 = \left| \vec a \times \vec b \right| ^2$ in Mathematica. How can I do it? Thank you for your time.
67 views

### why my code doesn't work [closed]

my code is eqn = A ((3 n + 1)/(n + 1)) ( 1 - (r/R)^((n + 1)/n) * B) == C *(n/r) * D[T[r], {r, 2}] DSolve[{eqn, T[R] == Tw, T'[0] == 0}, T[r], r] output is <...
574 views

### Iteration on a matrix

I want to update "matrix1" 100 times. "matrix3" will be new "matrix1" and it will iterate 100 times. Should I use a loop or function? First iteration is: ...
83 views

### How to save the output data of second order differential equation in Mathematica?

I am beginner in Mathematica. I am trying to save the output data as a text file but I could not save ! ...
80 views

### Problem with the Derivative Operator (')

I was working through some physics equations and came to a dead stop when I couldn't get the Derivative operator to work on equations with 2 variables. An example I ...
72 views

### Interpretation of PolarPlot

I tried to plot the function $r=-2t$ with $t$ in $[0,2\pi]$: PolarPlot[-2 t, {t, 0, 2 Pi}, AxesLabel -> {x, y}] When $t=\pi/4$, I have: $$r=-\pi/2=-1.57$$ ...
153 views

### Domain and codomain of a function

I am wondering if it is possible to get domain and codomain of a function in Mathematica (by using only built-in functions if possible). For example, I would like to give as input the function $tan(x)$...
72 views

### Building a list of random multiplication examples [closed]

I want to make a list of multiplications of randomly selected numbers that proceeds until a product greater than 50 is generated. How can I obtain such a list where each element is a product and its ...
390 views

### Randomly distribute numbers to lists

I have 4 empty lists. I would like to randomly distribute numbers from 1 to 10 to these 4 empty lists. How can I add integers to lists randomly? For example: ...
350 views

### Sum of Random Integers

I am trying to get a list of numbers with at least 1000 sums as possible, using random numbers from 1 to 10. But I don't want to get blank list output. How can I only get a list of numbers greater ...
112 views

### Summation exercise — how can I translate the problem statement into the Wolfram Language? [closed]

I'm new to both Mathematica and this forum, so this will be my first post here. I just got into Mathematica today, and I've been doing some exercises. Up to now things have been going well, but I've ...
50 views

### An Alternative Solution to a List Manipulation Example

Is there any way to write a code that has a function include Block[ ] and Do[ ] loop instead of my code? Here is my code: ...
92 views

### Converting integers to list

I'm trying to get a list output, but I get integer results. Is there a way to convert integers to a list? Here is my code: ...
34 views

### Symbolic ticks with subscript - ListPlot

Is it possible to rename ticks with a name like this: "$0.125 \, V_{FS}$"? In the below code I wrote "$0.125 \, V$", I don't know how can I insert the subscript. ...
185 views

### Symbolic ticks on y axis and numeric ticks on x axis - Plot

When I insert the option Automatic or All, why are the ticks on x axis blank? ...
44 views

### Symbolic ticks on ListPlot

I tried to change the name of ticks of the y axis on a ListPlot with symbolic names with the following code (0.2 with ...
100 views

### Evaluating and rearranging an equation

I am trying to evaluate the right hand side of the following equation and then rearrange the whole thing in terms of x. Q=xT+3x*Integral(1-e^(b*t)dt The ...
55 views

### Problem with wolfram alpha equation?

Giving this as to test the equation results in "False": But simply changing the upper level on the divider, it results in true What gives?
50 views

### Solving for a variable [closed]

I have 2 equations that I want to equate to each other and solve for a certain variable in one of the equations. (1/a)-(b*e^-2a)/a= -(e^-2a*V0)/a I want to ...
214 views

### Perform BFS for the 8-puzzle

I've tried to implement Breadth First Search algorithm in MMA, to attempt to solve the 8-puzzle game. But in some cases, I ran out of memory, but on other cases it solves without problem. Here is the ...
612 views

### Analogies to Help New Users

In many of the classes that I teach, I require students to learn the basics of Mathematica which we use throughout the semester to do computations and to submit homeworks (in notebook form). Some ...
154 views

### How to use If and Goto in Table loop? [closed]

I have the following code, j=0; Table[{Label[1], j = j + 1, i, If[j == 2, Goto[1], Continue]}, {i, 1,10}] which does not work; I get ...
60 views

### Publishing the result of a research related to development of Mathematica [closed]

We are developing a library in c language by using WSTP for Mathematica. Do you know a journal for publishing our results?
40 views

### sharing problem-set notebooks without answers

I am looking for advice from instructors who provide students with problem sets in Mathematica. I have problem-set notebooks with prepared answers, which I edit fairly often. I'm seeking a best ...
274 views

### Convert decibels to amplitude - Built-in function

Is there a built-in function to convert decibels to amplitude in Mathematica? I tried with: UnitConvert[Quantity[40, "decibels"], "amplitude"] but it does not ...
69 views

### Limit of a complex function - Output=input

I'm trying to compute the following limit: Limit[ (E^(I t w)) /(2 (-I + 1)), t -> Infinity] but Mathematica does not compute it. The above limit does not ...
271 views

### Solve system of equations

I wrote the following code: Solve[{x == VIN/VOUT, VOUT == 5 VIN}, {x}] Mathematica does not solve it. How can I get the result x=1/5? Thank you so much for your ...