Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

2
votes
2answers
62 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 ...
0
votes
1answer
55 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$$ ...
1
vote
1answer
55 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)$...
3
votes
4answers
224 views

Alternative form of ArcSin[Sin[x]]

Is it possible to get the following result in Mathematica by using only built-in functions: $$\arcsin( \sin(x)) = x $$ if $x \in [-\pi /2 , \pi/2]$ $$\arcsin ( \sin(x)) = \pi - x $$ if $x \in [\pi /...
1
vote
1answer
56 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 ...
4
votes
6answers
305 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: ...
3
votes
3answers
225 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 ...
1
vote
4answers
96 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 ...
0
votes
2answers
40 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: ...
2
votes
2answers
72 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: ...
3
votes
1answer
24 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. ...
1
vote
1answer
19 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? ...
1
vote
1answer
20 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 ...
1
vote
1answer
45 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 ...
0
votes
1answer
53 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?
0
votes
2answers
43 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 ...
5
votes
1answer
145 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 ...
29
votes
3answers
495 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 ...
0
votes
4answers
107 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 ...
2
votes
0answers
54 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?
3
votes
0answers
36 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 ...
2
votes
1answer
104 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 ...
0
votes
1answer
57 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 ...
3
votes
2answers
220 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 ...
0
votes
1answer
102 views

Step-by-step solution of a system of symbolic equations - Call Wolfram Alpha in Mathematica

I'm trying to get a step-by-step solution of a system of symbolic equations: ...
-3
votes
1answer
48 views

What is the answer of this calculation? [closed]

? + ? = 8 + + ? - ? = 6 13 8 What is the actual answer of this question?
0
votes
1answer
57 views

Looking for introduction to equation solving [closed]

I am a beginner with Mathematica. I wanna learn how to make a program to solve a system of algebraic equations related to my master [?], so I am looking for a way to learn this in as little time as ...
1
vote
0answers
34 views

Strain-stress relationship in spherical coordinates with Poisson's ratio [closed]

I am wondering if there is a way to get the relationship between strain and stress in spherical coordinates with Poisson's ratio. I read the documentation here: https://reference.wolfram.com/...
0
votes
2answers
48 views

Two variable derivative function mathematica [closed]

I am trying to find the point where the partial derivatives are equal to zero. The function I am analyzing: f[x, y] := 3 xy - x^2 y^2; The area it is ...
1
vote
0answers
92 views

Will my procedure be correct?

I am facing a problem when trying to solve the exercise of page 210 of the book GRAPHICS with MATHEMATICA, FRACTALS, JULIA SETS, PATTERNS and NATURAL FORMS of the authors CHONAT GETZ and JANET ...
2
votes
2answers
96 views

How can I compute $\sqrt 5$ to 200 places in base 40 arithmetic

What code should I write to compute $\sqrt{5_{40}}$ to 200 places in base 40 digits.
0
votes
0answers
58 views

Detection the coordinates of all points of a curve on an image file [duplicate]

I have a plot of a curve (the black curve without dashes) on an image file.jpg: http://s000.tinyupload.com/index.php?file_id=48857135704766357735 I'd like to detect the coordinates of all point of ...
5
votes
1answer
262 views

How can I define a variable so it will be treated as a real number?

I want to define a variable like d as a Real variable and then using that in the other equation like that: $\qquad d$ is Real $\qquad f = 5 + (1 + i) d$ But ...
0
votes
2answers
148 views

Mathematica problem- consecutive integers

Question: The sequence of consecutive integers 140, 141, 142, 143, 144, 145, 146, 147, 148 consists only of composite (non-prime) numbers, and has length 9. Find the longest sequence of consecutive ...
0
votes
1answer
85 views

Understanding the question

Let n be the integer shown below: ...
0
votes
1answer
31 views

Trying to find how to find how many prime factors have an odd exponent?

Hi I am doing a question for Mathematica and I'm having difficulties.The question is in the prime factorization of n, how many prime factors have an odd exponent? The given n is shown below (very ...
1
vote
1answer
309 views

Finding slope from a 2D Plot

Imagine I have a set of data, the plot is as following(just as an example consider a Gaussian curve): Is there any way to obtain the slop of this curve slop and plotted just using the initial data. ...
0
votes
1answer
120 views

PDE with substitution - proving the correctness of the substitution

I have the differential equation: $$\frac{\partial C}{\partial t} = D \frac{\partial^2 C}{\partial z^2}$$ to solve it, the author of my book carries out the following replacement: $$-2\zeta \frac{...
0
votes
0answers
43 views

Proving $d(dx)=d^2x$

Is it possible to carry out the following differential in Mathematica? $$d(dx) = d^2x$$ I tried to write: Dt[1*Dt[x]] the result is: ...
2
votes
1answer
60 views

Highschool teachers based in Australia using Mathematica ? [closed]

Would like to make contact, I can supply my email. thanks
1
vote
0answers
305 views

Step by step solution of a differential equation - Call Wolfram|Alpha in Mathematica

I know that it's possible to get the step by step solution of a differential equation calling Wolfram in Mathematica. For example: ...
3
votes
0answers
93 views

How to visualise Mathematica code and how to become a better coder [closed]

I seem to be using functional coding frequently. However, it does not come naturally and I usually copy from example, and then adapt for my own. How do you recommend I improve as a coder? I would ...
0
votes
1answer
178 views

Integral of $1/x$ with x real in Mathematica [duplicate]

I'd like to get: $$\int \frac{1}{x} dx = \log |x|$$ in Mathematica. I don't know how impose that $x$ is real. If I run: Integrate[1/x,x] Mathematica gives me $\...
2
votes
2answers
38 views

Graphics issue when Assigning Expressions

I was under the impression MMA directly substituted everything when assigned. Obviously I'm missing something subtle with either how substitution works in a notebook or how the ...
0
votes
1answer
59 views

Why it doesn't solve this? [duplicate]

Why Mathematica gives me an empty brackets {} when I ask it to solve this equation? Solve[29.6793984 + 3.213378*b + 1.606689*Sqrt[1 - 4*b^2] == 0, b]
9
votes
6answers
645 views

Best way to expand vocabulary of Mathematica functions?

I'm enjoying slowly learning Mathematica but noticing one skill I'm lacking is a comprehensive vocabulary of Mathematica functions. I was wondering if members would mind sharing some strategies they ...
1
vote
1answer
173 views

Cloud-based random question generator

Is there any way to create a micro site that generates a random question type and keeps the same question until the right answer has been inputted? I tried ...
2
votes
1answer
84 views

Doubt using RegionCentroid [closed]

TuI know an equation that gives me the barycenter of a circle: r = 5; H = r; y = (3 (2 r - H)^2)/(4 (3 r - H)) // N $1.875$ Using RegionCentroid on a solid I ...
1
vote
3answers
69 views

Computing $\bigcup_{n=1,5}X_{n}$? when $X_{n}=n+1,n+2,…,2n$

How do I correctly compute $\bigcup_{n=1,5}X_{n}$? when $X_{n}=n+1,n+2,...,2n$ for each $n \in \mathbb{N^{+}}$? When I do the calculation manually, I get the following results: $n=1:\{2\}$ $n=2:\{3,...
0
votes
1answer
99 views

Visualizing a geometric series

I attempted to graph the representation of the geometric series, everything works fine except when I increase "r" to a certain value(see figure 1 and 2 below), the horizontal lines begin to cross the ...