# All Questions

583 views

### Why aren't parentheses ( ) an expression in Mathematica?

Why aren't parentheses ( ) an expression in Mathematica? Can I get an expression in a form where parentheses are represented by an expression?
189 views

### Factoring large integers with the Pollard p-1 method

I am trying to use the Pollard $p-1$ method to find the factors of a large integer. Here is the problem: An RSA-type cipher is based on the integer $n = 140016480344628383$ and exponent ...
194 views

### truncated square wave input

I'm investigating the response of some dynamic system on Mathematica and I want to generate a tailored square input like the one in the following picture: Does anyone know how to generate such input ...
183 views

### Revolution of two curves around the y-axis

I've looked through the other posts on rotating a function around the x or y axis and haven't had any luck. my question is this how do i rotate the area between the functions $f(x)=x^2+1$, and ...
98 views

### Having trouble interpreting the results DSolve gives for the Laguerre equation

I am trying to solve a second order ODE using Mathematica. Before I get into solving my (more complicated) problem, I am trying to use DSolve on known ODEs to check that the answer that Mathematica ...
53 views

### How do I use DictionaryLookup to exclude words with certain phrases?

I'm looking to use DictionaryLookup to search the English dictionary for words that don't contain certain strings. For example, I want to exclude ...
65 views

### Interactive graphics without creating a new cell

A simple graphics command creates a red circle and a blue square: Graphics[{Red, Disk[{0, 0}, 0.5], Blue, Rectangle[]}] I can "close this up" by double ...
138 views

### Slow program- Mathematica shuts down

I've been trying to draw dynamic pictures of level sets of certain polynomials. The code right now looks like that : ...
53 views

...
301 views

### Does Mathematica store hidden information for matrix objects?

Bug introduced in 10.0 and fixed in 10.2.0 I found a case where calling one built-in function (HermitianMatrixQ) for a given matrix changes the behavior of ...
42 views

### ImageSize in Export [duplicate]

According to the documentation, Export["foo.eps", out, ImageSize->500] should produce a graphic that is 500 printer points wide. When I execute that command with ...
88 views

### Basic (?) dynamic module questions (If clause and refresh problems)

I'm building a dynamic module, but I'm stuck with a few things i don't know how to deal with. In particular I'm stuck with the "If" sentence and the refresh inside the dynamic module. Here's a ...
89 views

### How does Mathematica automatically choose which classifier method to use?

I'm interested in what heuristics are used in Classify's choice of method.
112 views

### Factoring out parts of an expression

I'm looking to factor out the parts of a multiplication type of expression. For example for the expression: $$20 e^{-t^2}\frac{t^2}{\sqrt{t^2+a}} erf(b+t)$$ I'd like to get a list in the form of: ...
100 views

### Plotting the image of a curve under a complex polynomial using Mathematica

I would be able to plot the image of a curve (say the circle with radius $1$ centered at $1+i$) under a complex polynomial (say $p(z)=z^2$) using Mathematica. I know how to find the level curves of ...
132 views

### Fundamental question about capabilities of Mathematica to represent abstract mathematics [closed]

I have an fundamental question about what Mathematica can and cannot do. I have a book which presents a certain physical theory in an axiomatic manner. The axioms make heavy use of mathematics. Some ...
71 views

### Two unrelated questions: 1. Output of Series[] for function, 2. Output conditional answers as if not conditional [closed]

As mentioned in the title, I have two questions. 1. I have code that looks similar to: ...
158 views

### How to stop optimization (e.g. NMinimize) after reaching target value

Suppose we have some function f[x,y] that we want to optimize in way that we are only interested in values (x,y) that guarantee ...
238 views

### How do I flip x and y value of a list in mathematica? [closed]

I am very new to mathematica. I have been trying to the following without any success. I have a list like this : data = {{1,2},{3,4},{5,6}}. I want a list ...
89 views

### How to use a While loop with NDSolve?

So basically I have this coupled ODE system I'm trying to solve numerically: ...
115 views

### Plot a function with a discrete part

I would like to plot a function like this one: ...
39 views

### NDSolve with external function [closed]

I have a complicated function g[a_,s_,t_] where s_and t_ are constants added by hand for ...
241 views

### Setting up parallel remote kernels

I'm having trouble setting-up a parallel remote kernel. I have correctly set-up remote kernels and can use them instead of the local kernels, by executing tunnel.sh ...
119 views

### RegionPlot3D of MeshRegion with VertexColor-like behavior

I regularly use the VertexColors option with GraphicsComplex[] to render images of objects with certain attributes at the ...
182 views

### Calling CUDA cuFFT

Following ybeltukov's excellent answers (see here and here) about how to access the CUDA library functions and interact with Mathematica through CUDAMemory, I tried to compile the code given in ...
274 views

### NIntegrate-ing a compiled function

I'm trying to integrate numerically in 6 dimensions a very long expression and I read about the option to NIntegrate a compiled function which should be faster. ...
113 views

### how to cancel arbitrary term in fractional formula

I often encounter this kind of problem that I want the fractional formula to be looked like the way I want it to be. For example, this one $$\frac{R^2 \left(g m_1-g m_2\right)}{J+m_1 R^2+m_2 R^2}$$ ...
98 views

### 4D array not exporting to .mat file

I am using Mma 9.0 I am trying to export an array with Dimensions {5,100,160,160} to a .mat-file using the Export command, but ...
179 views

### Import csv file which contains columns of different lengths --> How can I delete empty fields?

I have the following problem: I want to import a csv file into Mathematica. I file as a lot of rows and columns, but the column lengths differ for certain rows. 2 columns always belong together, ...
74 views

### Unevaluated form of an expresion [duplicate]

I have two matrices - s1 and s2. I want their sum to remain unevaluated. For instance, the command ...
583 views

### Quit the Kernel and start new session automatically

The question is how to quit the kernel, start a new session automatically, and to be able to run such procedure from e.g. Button. This is especially useful when ...
103 views

### Traffic growth forecast: showing the change of linear regression

The following picture shows a changement in the trend of data. (The data used are available here). Is there any tool that can show this change of trend? Until now I managed to show even more ...
156 views

### Combinatorics: Placed errors

Consider a vector of length n where each element can take one of the values U, X, ...
121 views

145 views

### How to manipulate graphs without losing properties like EdgeWeight?

Let's say I have a weighted graph, ...
90 views

### writing data in defined format into file

I have a code that writes datas into file using PutAppend[]. A simple form of the code is written below, ...
77 views

### How can I programmatically ungroup cells [closed]

I have a series of ~500 notebook files (created by a colleague), which somehow have had their cell groups modified from the default (perhaps accidentally by said colleague). In order to extract the ...
409 views

### FullSimplify wrongly reduces expression to zero

Bug introduced in 9.0 and persisting through 10.4 I get the following output with a fresh Mathematica (ver 10.0.2.0 on Mac) session ...
211 views

### Solution of a system of differential equations with a correction factor varying over time

Dear Mathematica users, I am trying to solve a system of equations of first order and time depedent. The system has 5 equations, one for every variable which varies over time. At the moment I am ...