Reputation
850
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 16
Impact
~10k people reached

Apr
6
comment Tree-like nesting of function
Any idea why this fails when the interval is larger e.g. sol[{}, {-100, 100}] (*{0., 3.2, 3., -3., -1., -2.}*) ?
Apr
4
comment Tree-like nesting of function
Finding roots was actually just the first example that came to my mind to illustrate the question (and Roots would only work for polynomials and not for any arbitrary functions )
Mar
29
comment Issue with FindRoot and initial value
I just tried your function findAllRoots and compared it with the results of FindRoot. What I noticed: for f= 300*10^-3 the root I am look for is at 1046.45 (confirmed by looking at a plot of c in that region). Mathematica's own FindRoot does not even find that one if i give it as initial value. Your function however find's the Root but still misinterpreters some other values where c -> Infinity as Roots. Try findAllRoots[c[k, 300*10^-3], {k, 500, 1200}, "ShowPlot" -> False]. Any suggestions why that happens?
Mar
29
comment Issue with FindRoot and initial value
The issue is that the position of the root varies with my input parameters (especially f). I use k within another function called d(f) which is a deflection/force-relationship. Because of the jumpiness of FindRoot I can't obtain a smooth continious defection/force-relationship.
Jan
27
comment Retrieve Options from function other than graphics objects
The output for Options[Unevaluated@f[0, "Amplitude" -> 2]] I'd like to get is {"Amplitude" -> 2, Frequency ->1}
Jan
27
comment Retrieve Options from function other than graphics objects
I expected HoldAll to do the trick, but it doesn't
Jan
27
comment Retrieve Options from function other than graphics objects
I should have clarified that I want to use OptionsPattern, see the edit in my question
Nov
27
comment How do I draw a pair of buttocks?
Combine this with the answer from Simon Woods and this is some serious application for the new wolfram programming cloud:D
Aug
1
comment Programming a recursive FFT with Mathematica
@Rojo, might be a dumb question, but what does ^= do?
Jun
6
comment Runge-Kutta 2nd Order ODE Solver
The link I provided shows you how to numerically solve differential equations in Mathematica. You don't have to implement your own algorithm - Mathematica comes with tones of algorithms for almost everything. You don't even have to tell Mathematica which algorithm to use as it automatically chooses one if non is explicitly given.
Jun
4
comment Runge-Kutta 2nd Order ODE Solver
As far as I am concerned the type of solver (e.g. Runge Kutta, explicit Euler,...) doesn't have anything to do with rewriting an ODE of order n as n individual first order ODEs
Jun
3
comment Runge-Kutta 2nd Order ODE Solver
Have a look at reference.wolfram.com/mathematica/tutorial/…
Apr
18
comment Scan vs. Map vs. Apply
@Mr.Wizard Could you point me to an explanation for the syntax f ~Scan~ head[1, 2, 3]?
Apr
3
comment Given an equation with one parameter, how do I use NSolve to solve it for many values of the parameter?
Can you further explain that?
Apr
30
comment Fourier transform of sampled data
The issue is that my actual data has a sample frequency of 48000Hz and that I can't find any option to tell Fourier that.
Apr
30
comment Fourier transform of sampled data
Figured that as well just this instant. The only issue is still to incorporate the sampling frequency when using Fourier. I will change the question accordingly.
Apr
24
comment Issue with ListDensityPlot when using logarithmic scale
Added another download link that hopefully does the trick.
Apr
24
comment Issue with ListDensityPlot when using logarithmic scale
1-click-hoster aren't what they were used to be anymore... until I find another one that actually works you can try dl.dropboxusercontent.com/u/74966785/SaschaData.zip
Mar
21
comment Only perform a symbolic differentiation once
Have you tried to create a non global variable inside your function that stores the derivative? You could then use replacement rules to call upon the derivative.
Mar
21
comment Graphical representation of a moving sound source
unfortunately they want a .pdf-file and I suspect just for the sake of printing it on top of that. (And I currently don't know if the hassle of getting 3D data from Mathematica to .pdf is worth the hassle anyway, meaning that I suspect there to be some kind of quality issue, color, aliasing etc.)