# All Questions

147 views

### EventLocator with LSODA?

Is the EventLocator option not compatible with LSODA on NDSolve. Below is what I tried to do ...
150 views

### how do you fix an axis in place for a movie?

I have a series of txyz coordinates, which I am plotting in space to create a movie of the objects' time evolution. With something along the lines of (simplified): ...
126 views

### Changing scroll rate for page down key?

I have a presentation remote that allows me to advance Mathematica slides when in the SlideShow environment. The control sends a page down key. Some of my slides extend below the screen window, and ...
325 views

### Simple contour integral with a parameter gone wrong

I run into the following problem, I tried to evaluate a very simple integral: Assuming[ a > 0 , Integrate[Sin[a*s]/(s - I)^2, {s, -Infinity, Infinity}]] ...
111 views

### Editable keyframe curves

Any suggestions for a good approach to implementing a zoomable 'keyframe' based curve editor? Essentially, something akin to the functionality of the graph editor in animation packages such as Maya. ...
220 views

### Having difficulty with the Minimize command

I am having trouble getting an answer to this question...Am I missing something that anybody can see. ...
307 views

### Can not Import PDF

I try to import PDF and extract text from it Import["D:\\Vegetarian MS.pdf", {"PDF", "Plaintext"}] but with some files I have a problem like this ...
175 views

### How to predict some constant number of values with NeuralNetworks

Example: << NeuralNetworks data = {Sin[#]} & /@ Range[0, 4 Pi, 0.5]; learn = data[[1 ;; 15]]; Now, lets fit our neural network: ...
79 views

### What exactly does AddTeX2Eps do and how does one use it?

What exactly is Janko Slavic's addon package AddTeX2Eps supposed to do, and exactly how does one get it to work? I do understand it's supposed to allow one to use TeX ...
200 views

### Front-end glitch when interacting with dynamic content

This is now bugging me too much to ignore it anymore. When I interact with a notebook that has dynamic content, for example moving a slider, Mathematica regularly brings other open notebook windows to ...
17 views

### Shortcut to insert plaintext?

Oftentimes I would find it useful to insert plaintext, to not be evaluated as input, right next to my input code. Is there a shortcut key to insert such a plaintext input box? I have relied on ...
21 views

I can load my library, but I cannot unload it with LibraryUnload. I do have a ...
62 views

### how to do variation

I have an equation needs to do variation. I can do it by hand, but I get different result by mathematica. maybe I made some mistakes in programming. can anyone point out for me? thanks This is how I ...
37 views

### What exactly is “ParameterErrors” of NonlinearModelFit?

I am trying to get what I call a "$\chi^2$ fit". This means taking a function $f(x,p)$ of the variable $x$ with a parameter $p$ and finding the value of $p$ that minimizes the "distance" from a data ...
30 views

### ParametricNDSolve and ProcessEquations

I have a question regarding NDSolveProcessEquations and ParametricNDSolve. When using the regular NDSolve we have the option to divide the integration into the three steps ProcessEquations, Iterate ...
65 views

### matrix with IF/THEN condition

How to generate all posible matrices with some conditions on the elements? I need to make for given $n$ all $n\times n$ matrices $A=(a_{ij})$ with three conditions: I. $a_{ij}=+1$ or $0$ or $-1$. ...
39 views

### Generating a variable size table one element at a time

I can produce a variable size list of strings like AACBBAABC with this code: ...
109 views

### Why DSolve and NDSolve give different answer

Consider these code, which solve the same equation using DSolve and NDSolve, why do they give different answer? Which one is ...
122 views

### Running CUDA or OpenCL using Mathematica on Raspberry Pi

I am wondering if someone can use CUDA and (or) OpenCL on a Raspberry Pi as in any normal PC equipped with a GPU. The main processor runs at 700 MHz and maybe will be slow for some imaging ...
112 views

### Google speech API . Speech to text recognition with Mathematica

Has anyone tried to use the Google speech API with Mathematica? This would open up exciting possibilities when combined with the free form input already available in Mathematica and with the recently ...
98 views

### Plotting basin boundary

How to plot the basin boundary in Mathematica? I have been trying to do this using the system ...
106 views

### How to get the latitude and longitude from a picture taken by a telescope?

I don't know if there is any possibility to recover the latitude and longitude from a picture which was taken by a telescope? For example, the following picture were taken by a telescope (I don't know ...
63 views

### How to Export Data from Mathematica into Excel specific cell

for import,we can do like this Import["XXX.xlsx", {"Data",1,2,3}],Mathematica will get the cell {2,3} of the "sheet1" in "XXX.xlsx". But if we want to export data from Mathematica to one Excel ...
43 views

### How to get information during evaluation of a Mathematica script?

I have a Mathematica script table=ParallelTable[f[u],{u,0,40,.5}] Export["filename.csv",table] that computes and exports a table of a rather complicated function ...
50 views

### Constrain integration to be over real domain

I am trying to integrate the following: Integrate[(2*Cos[Sqrt[F]*z - G])/E^(D*(p + z)^2), {z, -(h/2), h/2}] I am getting solution in complex domain: ...
92 views

### Symbol with Subscript but no quotes in it!

If I use the following function to define me a fancy subscript: ...
60 views

### The number of real values assumed by combinations of complex roots of a decic

Define complex conjugate as the pair of complex numbers $a+bi,a-bi$. Assume you have 5 such pairs and they are the 10 roots $x_i$ of a 10th-deg equation with integer coefficients. In general, how many ...
72 views

### Generating random practice problems and answers

There is a web version of Wolfram problem generator, is it possible to access it from Mathematica 9? Alternatively, is there a way to generate a random practice problems in Mathematica 9?
129 views

### Solving asymptotic equations

Let's say I have several equations that have solutions given as a negative series $$y(t,x)=\sum_{n=-1}^\infty a_n(t) x^{-n}=a_{-1}x+a_0+a_1x^{-1}+\mathcal{O}(x^{-2})$$ My equations look like ...
67 views

### How to define tensor fields in Mathematica?

I am wondering if the is any (neat) way to define tensor fields in Mathematica. Let me be more specific, using an example: For instance a tensor W with 3 indices, which is anti symmetric in the first ...
126 views

### What am I doing wrong when using DSolve

I'm trying to solve a simple PDE in Mathematica. I just can't get Mathematica to give me an explicit analytical solution. This is the code that I made and it basically repeats in the output what I ...
56 views

### Problem in exporting a plot with background to pdf

Just wondering if someone could help me for this problem. I have utilised prolog to use a jpg image as the background of my plot in order to compare my results with ...
50 views

### How to solve system of differential equations of arbitrary order (symbolic tensors)?

I am interested in solving systems of ODEs symbolicly, keeping things with arbitrary dimensions for clarity. For example, assume that $x, f(x) \in R^N$ and $A \in R^{N \times N}$, how do I solve ...
45 views

### Ito Formula on Functions

Suppose I have a $2$-dimensional stochastic differential equation with states $x$ and $y$ and I wish to apply Ito formula on $r = (x^2 + y^2)^(1/2)$ and obtain the corresponding stochastic ...
45 views

### Multivariate resultant in Mathematica?

Is there any command in Mathematica 7 which can compute the (McCaulay) resultant of a parametric system of multivariate polynomial equations? In fact, it would be great if there is also a way to ...
27 views

### Matching Root[…] objects with patterns, unexpected hidden argument

I needed to write patterns that could distinguish between arbitrary-function and polynomial forms of Root objects, for example, ...
69 views

### Defining an operator

Let s be a positive integer and let DifferenceDelta be this function with step = 1. Define ...
65 views

### NIntegrate doesn't work

I have a function, Dx[s] (defined in a module) which I can plot: Plot[Dx[s], {s, 0, GetLatticeLength[]}] However if I try ...
448 views

### Differences between Mathematica 8 and Mathematica 9

I use a code that I got of my professor. In Mathematica 8 it works well and I get good results. With Mathematica 9 I get complex values. I have the difference now: up to here MM8 and MM9 are the ...
35 views

### Profiling Apply to Package Function

I'm using following code in Notebook and most of the time is spent on Apply[...] according to WorkBench Profiler. How can I improve performance? I have also checked MainEvaluation: ...
76 views

### Exporting graphics to PDF results in destroyed fonts on Windows 8

Executing plot = Plot[x^2, {x, 0, 100}, PlotLabel -> "Plot"]; SetDirectory[NotebookDirectory[]]; Export["plot.pdf", plot, "PDF"]; results in Is this a bug? ...
71 views

### Simulating a simple intermolecular repulsion term on a 1D adsorption model

Today I am trying to simulate some molecular adsorption behavior with a really simple repulsion term. What I have so far is a a script that generates a 1D chain, selects random sites (with selection ...
76 views

### parameter NDSolve

the question I need to solve is: t x'[t] == -x[t] + y[t], t y'[t] == -5 t^2/x[t]^2 + x[t] - y[t], x[1] == 4, x[b] == 1 in order to solve the coupled ...
30 views

### Parallelizing an associative binary operation

I have an associative binary operation '.', which I often use in this sort of way: result = expr1 . expr2 . expr3 . expr4 The ...
51 views

### NonlinearModelFit is not giving the fit with minimum chi^2

First of all, a bit of background, I am using Mathematica to fit angular distributions of gamma rays, so I apologize for some of the serious messiness in the formulas. The data is simple I have three ...
66 views

### FeynRules Package

Does any one use the FeynRules package? If so, how can I implement a vertex of one Gluon and two octet scalars? I tried ...
52 views

### LeastSquares with some parameters missing

I want to do a partial least squares (PLS) regression using LeastSquares on my data. The input parameters are temperature, humidity and pressure for a given date. ...
44 views

### Memory Leak while running Animate/Manipulate/Export

While looking into building a simulation for an ant colony, I started encountering some memory leakage issues. ...
I have a Beta distribution, and am interested in calculating expectations and conditional expectations. The domain on the distribution is $z \in [0,1]$ Ignoring constants of proportionality, the ...