1
vote
0answers
35 views

complex algebra with Solve function [closed]

I wanted to solve this complex expression for L, Solve[(1/(R + (1/Iwc)) + (1/(R + IwL)))^-1 == R, L] where I is sqrt(-1) and mathematica is out putting {}. Does ...
0
votes
1answer
51 views

Manipulate curves [duplicate]

I want to draw curves with manipulation. When I use the following code, I receive nothing. ...
0
votes
0answers
65 views

Select positive elements from a list of solutions

I'm solving two equations with two unknowns ...
3
votes
4answers
270 views

Using NIntegrate to integrate functions with sharp peaks (Lorentzian-like)

I have a problem with NIntegrate that I do not understand. I want to integrate a function f[x], which has a complicated analytic ...
3
votes
0answers
83 views

Measuring Temp on a cubical using heat equation with Neumann and Dirichlet boundary conditions

I'm trying to solve 3D heat equation to understand how the temperature varies with time on cubical. i have mixed boundary conditions: Dirichlet on the bottom surface (constant Temp) Neumann on all the ...
1
vote
1answer
58 views

How to fix a “Java failed to load class” when using custom Java class using JLink?

I have a Java project compiled into a jar file with a class called HttpClientSSO. The commandline java -cp bota.jar org.nilostep.bota.HttpClientSSO executes ...
3
votes
1answer
116 views

Memory limit hit: optimize code for finding twin primes

I need some help optimizing a Mathematica code so that it'll not max out RAM. Here's the code: Cell 1 ...
6
votes
0answers
46 views

How trap expression that doesn't evaluate?

If evaluating an expression produces an error, it's easy to trap that using Check or Throw......
1
vote
1answer
142 views

3D Stack of Disks with dedicated height plots

i have a problem which I could not solve yet because it is rarely discussed in the web. I have a Dataset, representing z-Values (e.g. Qualities 1-7) on distinct points of a circle (center=0,0; ...
3
votes
0answers
77 views

Feasibility Beowulf Cluster with Raspberry Pi's running Mathematica?

Allegedly the Raspberry Pi comes equipped with a full version of Mathematica. I know that Beowulf clusters have been built from Raspberry Pi's. Now would it be possible to use such a cluster to do ...
11
votes
6answers
432 views

Reshaping associations, generalization of GroupBy

Let's say we have a set a\of associations: ...
6
votes
1answer
99 views

How does the undocumented option ScalingFunctions work with Plot versus ListPlot?

Say that I want to reverse the x-axis of a plot, there are a few solutions on here (like those in the answers here and here) but most of them are valid only for a ...
1
vote
1answer
52 views

Getting the conditions for equation to be solvable

I have a parametric equation to be solved, but I do not actually care for the solution. I only want to know the range of parameters for which the equation has a solution. Is there a way to get the ...
1
vote
1answer
35 views

Access variable middle of the run [duplicate]

I execute a Table[] that need large time to be finished. If I abort it I loose what evaluated until now. Does it possible to stop running and save what evaluated ...
0
votes
0answers
137 views

Why is Mathematica not solving this equation?

Every time I am trying to solve this equation Mathematica is just not doing anything. First time is showed error as quantity is not quantified or something. But since then whenever I am trying to ...
2
votes
2answers
135 views

Why is LegendreQ[1/2,x] complex-valued for x>1?

Something is strange with $\sf LegendreQ$. Let $x>1$. I wonder why $\sf LegendreQ[\frac12,x]$ is complex-valued, and the following two codes do not give the same results: ...
1
vote
0answers
63 views

Issue with WSTP

I'm trying to get Pythonika to work once again - with the latest version of the WSTP. The changes required are not many, basically just three: Change ML to WS Change mprep to wsprep Change mcc to ...
5
votes
2answers
107 views

Why is NDSolve's StartingStepSize with ExplicitEuler not working? How do I set the step size?

Why do I get a smooth curve (that is obviously wrong) when I run this? ...
0
votes
2answers
95 views

Combining two lists by merging element-wise [closed]

I have two lists, L1 and L2, each with some data and two scenarios: ...
3
votes
2answers
157 views

Plotting Planck's function and unexpected results

I have the code below. If you look at the plot, you can see a strange behaviour. The function goes to zero as λ->0 but you can see the plateau below ...
4
votes
2answers
133 views

reversing plot axis for Plot, LogPlot, LogLogPlot

Is there a simple way to reverse axis on a plot (all --- Plot and LogPlotand LogLogPlot). I ...
2
votes
1answer
93 views

Generating plot legends [duplicate]

I want to generate a list as below for the legend of my plot, {D=0, D=0.5, D=1, ...} using the code ...
8
votes
2answers
238 views

Plot a 3-cycle graph with clockwise-directed edges

When I try to plot a 3-cycle, the edge direction is always counter-clockwise. The plotting code is ...
3
votes
0answers
159 views

Mathematica's Singular Value Decomposition different from another math engine [closed]

I’ve been working with SVD – singular value decomposition. Things weren’t working as expected. Thus, I looked over to Matlab and executed the following code: ...
1
vote
1answer
64 views

Labeling x,y,z coordinates in ListPointPlot3D [duplicate]

I am VERY new to Mathematica, and am having some difficulty with visualization. I have a series of points in 3 dimensions (x,y,z) being read from an Excel file. I can visualize the plot fine using ...
2
votes
0answers
38 views

Generating a List of Numbers with “Table” Causing Deviation [closed]

I'm trying to generating a list of numbers with the function table. But it caused a little deviation which I didn't expect. Let's say I need a function like: ...
1
vote
0answers
83 views

Mathematica Internal Self Test Error winFonts|c|310 [closed]

Every time I open Mathematica, I get two identical error messages: ...
3
votes
1answer
54 views

How can I manage discrete variables that oscillate when using NDSolve?

I have a system of differential equations with two discrete variables (var1 and var2) that can be either 0 or 1. I'm trying to ...
3
votes
2answers
87 views

Role of Accuracy in numerical evaluations, SplitBy vs GatherBy

This is a follow-up question to this question. I generated a list by substituting the results of a solve[] routine and set: ...
8
votes
1answer
109 views

Serial - DeviceOpen - Baudrate Error

When trying: ser = DeviceOpen["Serial", {"COM1", "BaudRate" -> 230400}] I get: ...
3
votes
1answer
66 views

How to prevent extraction of constants from radical sign?

To me, the expression Sqrt[2]Sqrt[x] is more complex than Sqrt[2x]. But even if I merely input the latter, I get the former as ...
11
votes
4answers
2k views

How to make a Cahn–Hilliard model GIF

The question derived from @Jason B 's answer.I wanna make it but don't how to do.But we can get some rule about the GIF The change of the total pixel is very small. ...
0
votes
0answers
38 views

Unexpected behavior of SameQ [duplicate]

I am new to Mathematica and I wanted to test the equality between 2 expressions using SameQ. I obtained the following result (note that I defined $r = \{x,y,z\}$, which is not shown below): It ...
3
votes
1answer
75 views

How to stop running Java?

<< JLink`; InstallJava[]; Clear[serverSocket, socket]; serverSocket = JavaNew["java.net.ServerSocket", 12345]; socket = serverSocket@accept[]; If I enter ...
1
vote
1answer
80 views

Having issue for solving a system with seven equations

I have a system with seven equations and three constrains. I tried to solve them using NSolve, but it takes forever without getting any result. Also, I tried it ...
1
vote
0answers
78 views

Pattern for a function of say 2 variables [closed]

How can I specify a pattern for an expression f for which say f[x,y] returns a value, ie is defined as a function taking two ...
4
votes
1answer
38 views

help with string patterns and RemoveCellTags

I am building a table of contents using AuthorTools. I used it to create cell tags so the TOC can make hyperlinks, but then I decided I wanted to change them. But I am having trouble removing the ...
5
votes
0answers
46 views

CheckboxBar doesn't work with TrackedSymbols

CheckboxBar doesn't work with TrackedSymbols and a custom callback function. Here's an example that doesn't work ...
3
votes
2answers
103 views

Button with loop that iteratively updates slider in Manipulate

I have the toy Manipulate. ...
0
votes
0answers
68 views

Conditional probability $P\left(X \in A \middle| \, Y \in B \right)$

I am trying to compute a conditional probability of the form: $P\left(X \in A \middle| \, Y \in B \right)$. In details: Let $g$ be a complex r.v. normally distributed as ...
2
votes
1answer
63 views

Exponential number with negative base? [closed]

Consider the following number: (-1)^(2/3) I want to get output in real field, equal with: (-1)^2 = 1, 1^(1/3) = 1 Thus ...
2
votes
2answers
58 views

How to mix symbols and text for labels in manipulate? [closed]

I'm creating a big manipulate box with several sliders, and each slider must have a small explication text (units, for example) after a mathematical symbol. As a simple example, here's the code I'm ...
1
vote
2answers
93 views

plotting all solutions of differential equations for many parameters

I have a list whose elements is in the form {{f[x]-> some function of x}}. How do I manipulate it to bring in the form ...
9
votes
3answers
316 views

GatherBy/SplitBy and Sort a list

So let's say I want to group a list of points based on their distance from the origin. I would do something like: ...
1
vote
0answers
37 views

Order of importing data from files

I have many text files numbered from 1 to 1 million in numerical order. Within each text file is 5 columns of data (TAB spaced) with many rows. I effectively want to take the minimum value from each ...
2
votes
1answer
90 views

What function can transform A*Cos[x]+B*Sin[x] to Q*Sin[x+R] form? [duplicate]

I've tried several functions related to trigonometric transformations, namely TrigFactor, TrigExpand, ...
0
votes
1answer
62 views

Can't sort my list numerically for larger numbers than 10 e.g. 1,10,100,2 [duplicate]

I want my files names in real numerical order so 1,2,3,10,12. However it is currently putting them in order like so: 1,10,12,2,3 Input: ...
2
votes
1answer
136 views

Generating x,y coordinates for an edge detection of image [closed]

i have a photo and I want to obtain the coordinates in a table form of its edge so that I could input the data into Autodesk Inventor May I know how I can do it
1
vote
1answer
82 views

Export the coordinates of STL object

Hi I currently have a STL file of a 3D object Is it possible for me to obtain the coordinates of the object so that I can just input that into Autodesk Inventor
0
votes
0answers
93 views

Slow and laggy animation of an electromagnetic wave

I made a manipulate code of an electromagnetic plane wave which works relatively well, but is very slow and laggy for what it does (showing just a bunch of rotating or oscillating arrows). What is ...

15 30 50 per page