# All Questions

191 views

...
146 views

### Solving for $d$ in $x= E^d \bmod(n)$

With regards to Public Key Cryptography, I have been tasked with the problem of attacking some information given in an assignment and discovered a private key used to digitally sign a message. Known: ...
7 views

### How to make the background lines in PlotTheme -> {“Detailed”} more visible?

The following code ListLogLogPlot[{1}, PlotTheme -> {"Detailed"}] adds thin dashed gray lines to the background. It is ok visible in the notebook but barely ...
9 views

### Bug in PiecewiseExpand and Mod with assumptions

The following code using PiecewiseExpandand Modgives the wrong answer ...
19 views

### External and internal Assumptions on PiecewiseExpand and Mod

After this question I'm intrigued about the different behaviors depending where and how the assumptions are given. ...
4 views

### Why some alpha + Evaluate return Pod, some return only return an Entity?

Why some alpha + Evaluate return Pod, some return only return an Entity? Here is an example
434 views

### Performing Computations on Sets

I would like to find a permutation of $\quad S=\{\frac{1}{10}, \frac{1}{2}, \frac{4}{7}, \frac{3}{5}, \frac{2}{3} \}\quad$ that maximizes the sum of theses elements raised to unique powers: ...
67 views

### Select from a list using another list of limits

Given a list of values list1 = {2.4, 3.4, 5.9, 1.2, 9.5, 7.5} and a another list containing theoretical maximum values ...
17 views

### Simplify Mod to subtraction when possible

FullSimplify[Mod[t,10], t>101 && t<109] It's a long shot, but can I get Mathematica to return t-100 or something ...
46 views

### WSTP hangs up in Mathematica 10.2

I have a problem with WSTP in the newest version of Mathematica. I get the same problem on Ubuntu 14.04 and Mint 17.2. Using the pre-built examples (...
28 views

### Export numeric data with preset decimal places

I have a table of pairs of numbers, each with 300 decimal places, which are all important. If saved using Export["data.dat", data] and then imported back via Import["data.dat"] - then the 300 decimal ...
10 views

### Simple Two-Axis Plot in Mathematica? [duplicate]

Is there a simple way to implement a two-axis plot in Mathematica? On Quora.com there is a suggestion to use Show to combine two different plots with the same x-axis domain and with y-axes on ...
33 views

### How to take something from DelaunayMesh and similar family of functions

I was looking at this question here and I tried the suggested idea by Anton Antonov to use DelaunayMesh It will look like this: ...
52 views

### Why does Nearest not support Sqrt?

Simple examples with two points nf1=Nearest[{{0, 0}, {Sqrt[2], Sqrt[2]}}] nf1[{0, 0}, {All, 2.1}] gives {{0, 0}} This is ...
10 views

### Error: Part specification is longer than depth?

I am following this topic in order to get my resuls. This code should be quite general but I get a really basic error which I don't understand how... So my code is: ...
96 views

### Mathematica function to calculate equivalent NormalDistribution from a WeibullDistribution

I have a WeibullDistribution with mean 12.0 and standard deviation 3.2. Is there any built-in Mathematica function that calculates an equivalent ...
61 views

### How to solve nonlinear equations involving integrals

Sorry, if this is a duplicate, I was not able to find a corresponding answer. The only question related to mine, as far as I can see it, is this one: How to solve algebra equations containing ...
28 views

### Numerical Analisys and StepDataPlot

I'm using StepDataPlot to compare several methods for differential equations. Does exists a function, or something else, to find the number of steps that the choosen method used to find the numerical ...
21 views

### Mathematica 10.2 Notebooks Freezing

I've been having a problem with notebooks in Mathematica 10.2 freezing up on my Windows 8.1 laptop. It seems to happen when I am typing input. The notebook freezes (become unresponsive) for 30 secs ...
11 views

### Formatting legend text font multiple times

I have the same question as asked in this question. With the difference that I want to change multiple legend entries. I tried: ...
146 views

### Existence of an analytical form for integral

Can the following integration be performed with an analytical output? ...
65 views

### Through does not work with Subtract

Through[(Max - Min)[#]] & @ {1, 2, 3, 4, 5} gives 5 + (-Min)[{1, 2, 3, 4, 5}] Of course I can work around by ...
55 views

### Fail to call an executable [on hold]

The question is related to the question here. I do not know if it is better to open a new post as I did here or make an edit there and delete the current post. I have one executable file called ...
850 views

### How to automatically remove text from images?

I'd like to remove the text in the center of images automatically. To use Inpaint[], you need a mask, but I don't have one. So really the problem is: How to build ...
53 views

### Symbolic sum of Stirling numbers gives wrong answer

This issue originated from my attempt to answer a question on MathOverflow: Sum[StirlingS2[i, 2], {i, 0, n}] on Mathematica 10.2.0.0 gives as answer ...
142 views

### NDSolve computes wrong solution?

Please excuse me if the question has already been answered somewhere else, but I was not able to find it. Could somebody tell me what I am doing wrong here? The solution of DSolve is of course correct ...
200 views

### A tricky algebraic simplification

EDIT from the OP: Please delete this question. The whole problem was that I was using a very old version of MMa on a friend's computer without realizing it. FullSimplify[] handles it perfectly even ...
33 views

### Setting precision globally

This question is similar to this one and to this one. My code involves a lot of calls to Mathematica's N function, with the second argument (precision) set to 100 (say). I'm happy with the code, it ...
142 views

### FEM Solver for Navier-Stokes equations in 2D

it's me again. I'm trying to obtain a numerical solution to Navier-Stokes equations in 2D in a non-rectangular region. So far, this guide was very helpful, but he is using finite differences, which is ...
72 views

### Can Mathematica make the closed-path-integral sign?

Mathematica seems to have the most complete library of mathematical typesetting characters anywhere outside of LaTeX, so I'm somewhat surprised that I can find no way to create the closed path ...
43 views

### To simplify an expression further

I have solved the following Eq to get hz: ...
56 views

### How to find all possible paths with as many edges between two same vertices?

Suppose I have an undirected graph G = Graph[{1 <-> 2, 2 <-> 3, 2 <-> 3, 3 <-> 4}] I used ...
39 views

### Select elements from a list

I need to transform millisecond data of trades of a certain stock to (approximately) minute data. The data is of the form ...
71 views

### Solving non-linear differential equation

For my research project I need to solve the following integral ...
258 views

### How to solve a PDE with Robin Boundary Condition inside considered region?

I'm trying to solve the heat diffusion equation in cylindrical coordinates. The main problem is that I would like to include the Robin Boundary Condition inside considered region in order to simulate ...
40 views

### Plotting the PDF of a Binomial distribution

I want to plot the histogram and pdf of 2 X - 100 with X a binomial distribution, but I'm having trouble with the pdf -- I just ...
46 views

### Pick the maximum element of each nested list

Suppose that I have a list with nested lists, where each nested list contain entries consisting in 3 columns: ...
96 views

### Graph generation from a non-paired edge list

The elements in e = {{6414, 6598, 6927}, {7, 1035, 2382, 6927}, …} are the graph nodes; for example, {6414,6598,6927} is ...
100 views

### Average positions in a 1D random walk

I wrote this to simulate m random walks of n steps ...
81 views

### Error when extending 1-dimensional PDE to 2 dimensions

I want to calculate how magnetic flux is trapped in a superconductor near the interface superconductor/vacuum. This problem already was solved analytically by J. Pearl for cylindrical symmetry (if ...
126 views

### Dirichlet conditions being ignored

I have the following domain: ...
92 views

### “renormalising” a list [on hold]

I am looking for the most effective way to solve the following problem: EDITED (for clarification): I have a large table MyTable, say $200$ columns and $10^5$ ...
195 views

### How to implement Bresenham’s algorithm as a system of equations?

Bresenham's line drawing algorithm is usually implemented via loops. But in Mathematica we can take advantage of its ability to solve Diophantine equations. From educational viewpoint it is quite ...
220 views

### Find a sequence given the sums of its terms

For a certain sequence of numbers, the sum of the first $n$ numbers in the sequence is given by $n^3+4n$ for all positive integers $n$. What is the fifteenth number in the sequence? How do you ...
317 views

### How to generate a closed B-spline curve?

I wrote a function called deBoor by the Cox-De Boor algorithm to generate a B-spline curve. ...
168 views

32 views

### How to run existing mathematica nb from Java

I have the Mathematica notebook (Test.nb in this case), how can I run in from Java? So far I have the following code. If I type: ...