# All Questions

154 views

### Where is f2mma.zip, Fortran to Mathematica converter?

I want to convert the SOFA libraries to Mathematica, and found out about f2mma, a Fortran to Mathematica converter. Google points to many papers about f2mma, but the only link to the software ...
88 views

### Setting up two ordinary differential equations [closed]

Just having a total blank at the moment, I realise that maybe this question would best be suited for a math forum but i assume Mathematica is needed in order to solve these equations. So the question ...
302 views

### Why does having many Print statements slow down my code?

I have a code that I need to debug. I have put a Print[] into it that should give about 10^4 prints for table entries. I know that 10^4 is large, and this exposes ...
79 views

### Sign of a symbolic expression as a function of parameter values

I need to know the sign of the following expression for p[t] = z/(1-a), as a function of the parameters {a, b, c, z}: ...
123 views

### Extract peaks from image

EDIT: I've managed to solve the problem by using "Get Coordinates" on a couple of points and then figuring out the affine mapping by using the values they're supposed to be at, and applying that ...
192 views

### How to further accelerate arithmetic with Fermat Pseudoprime and Fibonacci number

I've been working on this all night, and I have made this go pretty fast, compared to my first iteration of the program, but now I'm out of ideas. I'm trying to write a program to test (by good ...
159 views

### How can I customize the tooltips on a ContourPlot?

I have a contour plot and I would like to have finer control over the tooltips that are displayed. For the sake of argument, suppose that I have the following plot, ...
82 views

### RandomGraph with specific constraints

I need to generate random connected simple graphs (no loops) with the constraint that exactly two vertices must only have a single edge. I can create many connected graphs (but very few will have the ...
131 views

### How to cut imported audio?

How to cut an audio clip imported by the Import function? E.g. I'm interested in the content starting from the 100th sample up to the 200th. I'd like to avoid ...
77 views

### Want to display a animation necklace when updating a list of suggestions from an inputfield search

I have an InputField search that provides search suggestions, but I want an animation necklace to be displayed while the search is 'busy'. I would also like this to be done using Dynamic rather than ...
297 views

### How can I make Plot show the plot while it's computing it?

Normally, Plot acts like a black box and only gives you the requested plot once it has finished computing it. However it can be useful, other than interesting, to ...
202 views

### Sow only if different from zero

I am trying to collect elements with Reap and Sow, where I am interested only in non-zero elements, that is I am trying something like that ...
56 views

### ImageAssemble and Export gif takes too much memory

Errr.... First Let's create some gifs: ...
141 views

342 views

### Filtering of an unwanted frequency through a Fourier Transform

I have a data set with evenly spaced data points. The plot is frequency vs. intensity. The overall shape of the plot is an upwards curve into a plateau, this cannot be seen in the data as this is an ...
266 views

### How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...
67 views

### Forcing a locator button to remain on the surface of a sphere

This question may or may not be possible and might be a hard one to answer. Suppose that I have a sphere centered at the point (1,2,-1) with radius 3. Is it possible to place a locator button on the ...
295 views

### Does Mathematica have an equivalent of C's nextafter?

In C (and many other programming languages), there is a function double nextafter(double x, double y) which takes two (IEEE 754) floating-point numbers and ...
474 views

### Does Mathematica have an equivalent of Python's float.as_integer_ratio?

The Python programming language has a float.as_integer_ratio(x) function which exactly converts an IEEE 754 floating-point number into a numerator/denominator pair ...
116 views

### Changing from Dashed to Solid

I have: Graphics[{ Blue, Thick, Arrow[{{0, 0}, f1}], Arrow[{{0, 0}, f2}], Red, Arrow[{{0, 0}, f1 + f2}], Dashed, Blue, Line[{{-9, 0}, {12, 0}}] }] ...
84 views

### How to reduce trigonometric expressions under special conditions

For the following problems I used "FullSimplify" and "TrigReduce" but I manage to reduce more by hand. ...
100 views

Consider: ...
101 views

### Undo history cleared after removing comments - bug?

If I've written some code followed by a comment, like this: x(*y*) and I remove the comment by first removing the right delimiter and then the left, my undo ...
87 views

...
130 views

### NIntegrate and Sum give different results in summing functions

I am using these two functions: ...
86 views

### Diff eqs can be solved?

I'm trying to solve a pair of coupled differential equations, but am having trouble making DSolve evaluate my equations. ...