4
votes
2answers
204 views

Numerical sum does not give consistent results

Consider the function ...
4
votes
2answers
846 views

rotating 3d text

Is it possible to create a 3d rotating text like this: animation here. Here is my try so far: ...
0
votes
0answers
62 views

LogLinearPlot analog for Plot3D? [duplicate]

Is it possible to make 3D plot in logarithmic coordinates? I need analog LogLinearPlot to plot 3D figure in logarithmic x, or y, or both coordinates.
4
votes
2answers
302 views

find where 3 inequalities are simultaneously greater than zero

I have 3 functions: f11[l], f12[l] and f13[l], and I would like to know for which values of ...
2
votes
1answer
112 views

Tough Inverse Fourier Integral: why does the sign matter?

I'm computing the Inverse Fourier Integral of ((a^2 + omega ^2) c^2) /((b^2 + omega^2) ((r^2 + omega^2 - omegaInt^2)^2 + (2 omegaInt r)^2)) ...
9
votes
1answer
281 views

Apply a Function Pairwise [duplicate]

I'm new to Mathematica I'd like to apply Mean pairwise to a list to achieve the following. ...
4
votes
1answer
628 views

Track object movement

Referring to this link I happen to realize that actually the trace being projected is dependent on an equation and not on disk or circle. Though I was presuming that it is getting traced because of ...
0
votes
2answers
276 views

How can I give graph required data with GUI?

Consider that I have the simple graph of ...
0
votes
1answer
1k views

financial data behind Wolfram|Alpha and Finance Platform

I need to price 23,000 securities from 1999 to 2007, and they are surprisingly hard to find on subscription-based services, like Bloomberg LP, ThomsonReuters or S&P CapitalIQ offerings. Probably ...
20
votes
2answers
1k views

3D orbits and inaccuracy over time

I wrote a little program to use Newton's Law of Universal Gravitation to animate 3 planets orbiting a central star, but I have run into a problem. Here is the code that I used to create the program (I ...
5
votes
1answer
2k views

How to draw some 2D curves in a 3D plot? [duplicate]

I want to plot several 2D curves (Sin[x] at y=0, Cos[x] at ...
12
votes
2answers
786 views

DumpSave for the forgetful

A few weeks ago I created a big matrix, and in order not to have to recreate it, I stored it using DumpSave["file.mx", variable]. Now I want to read it back in and ...
1
vote
1answer
558 views

Prandtl-Meyer function

I'm trying to solve for Mach number based on the given Prandtl-Meyer function, however I keep getting odd error. Here is my code: ...
2
votes
2answers
445 views

Mass Symbolic Manipulation with Subscripts? (from plaintext Input)

The simplest example of the change being sought is a greek letter, typed in as plaintext nu, and its may be replaced by the symbol, ν: expr = 3nu*kx*ky+ ...
7
votes
2answers
502 views

Convert Graph to Graphics

In Mathematica 9, a graph is returned as an object with head Graph: In[8]:= CompleteGraph[8] // Head Out[8]= Graph ...
1
vote
1answer
218 views
1
vote
0answers
72 views

Unable to copy/paste CDF embed code in Ubuntu

I tried this question in superuser but no luck, maybe somebody here knows what is going on... Mathematica offers export to a format they call Computed Document Format (CDF) - it is basically a player ...
3
votes
1answer
551 views

How to adjust parameters to experimental data on a NDSolve problem

I have 2 differential equations with 2 variables, x and y,which are a function of t and I have the parameters k1, k2 y k3. ...
5
votes
2answers
271 views

Simulating a Stochastic Process within certain bounds

I would like to simulate paths of a Geometric Brownian Motion till it hits one of two barriers, say 10 or 200. ...
1
vote
1answer
174 views

How to send a function definition to MathLink from C/C++?

In this tutorial some MathLink concepts are introduced. At page 33 in the last lines the author is talking about sending to MathLink a function definition like ...
7
votes
6answers
3k views

How do I draw a hemisphere?

I want to draw a solid or partially transparent hemisphere above a partially transparent cuboid object in Graphics3D. However, I do not know how to do this s.t. only half the sphere is drawn. Here's ...
4
votes
2answers
419 views

Cannot call custom function loaded from script using C/C++ MathLink

I am using MathLink with C/C++ on a Unix system in order to call a Mathematica (version 9) function and get the result. The function I need to call is a personal function of mine ...
5
votes
1answer
182 views
1
vote
2answers
274 views

Problem in reading data from a text file with two variables

I want to read in a data file, test.txt, in Mathematica. The file has the following content: ...
5
votes
3answers
509 views

Find the position of a string element, knowing only part of the string

I have a list, e.g.: list = {1, 2, 3, "Element 1", 4, 5, "Element 2", "Something else 1", "etcetera"} Now, I want all elements starting with ...
3
votes
1answer
125 views

Optimizing a simple calculus using a list of matrices - Repeated dot product between a vector and a list of matrices [closed]

I want to make the following operation : $$ \begin{bmatrix} \dot q_1\\\dot q_2 \end{bmatrix} + \begin{bmatrix} \begin{bmatrix} q_1 & q_2 \end{bmatrix} \mathbf A_1 \begin{bmatrix} q_1\\ q_2 ...
6
votes
2answers
457 views

Exporting twice crashes Mathematica on Ubuntu 12.04 with Unity

I'm trying to work out if it's a Mathematica, Ubuntu or setup specific bug. I've asked some colleagues to try it on other Linuxes. This also crashes on OS X with Mathematica 8.0 and fails with 9.0, ...
2
votes
2answers
947 views

How can I get even steps on x and y axes in a plot?

I'm plotting the shortest distance from a point to a line using the following code ...
88
votes
7answers
4k views

Can one identify the design patterns of Mathematica?

... or are they unnecessary in such a high-level language? I've been thinking about programming style, coding standards and the like quite a bit lately, the result of my current work on a mixed ...
2
votes
0answers
545 views

I can't solve this set of equations

I am having trouble solving a set of equations in mathematica. I do not get any errors, but i don't get any answers as well. I have some restrictions on my parameters and variables in the equations ...
1
vote
3answers
1k views

Changing FrameTicks of ListPlot

I am unable to change the frameticks for my list plot. I am trying to plot a growth rate omega function which looks like this: ...
3
votes
1answer
125 views

Comparing data sets with fade transitions (Code speed-up)

I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
6
votes
1answer
118 views

How does `LongestCommonSubsequence` work?

When I recently came across this posting about LongestCommonSubsequence I was curious about how the function worked. ...
1
vote
3answers
205 views

finding an argument of a complex number

What is the simplest way to find the argument of the following function? ((1 - E^((I π (1 - α))/(β - α)) z)/(1 - E^(-((I π (1 - α))/(β - α))) z)) as I tried the ...
1
vote
1answer
141 views

Another MoebiusMu question

When I evaluate the Mertens function to infinity: NSum[MoebiusMu[k], {k, 1, \[Infinity]}] I get -1, but I expected to get -2. I wanted to modify the ...
0
votes
4answers
1k views

How can I make a Plot over a discrete set of domain points?

I want to plot the function $y=2^x$ at the $x$-values given by Table[Prime[n], {n,20}] How should I write the plot function? Like so? ...
15
votes
3answers
692 views

How can I create a 3D FilledCurve object?

FilledCurve can create a 2D graphics object; for example: ...
15
votes
2answers
293 views

What are Root objects with multiple polynomials?

In Mathematica 9 a new flavor of Root object with multiple polynomials was introduced. For example, ...
3
votes
4answers
385 views

another way to do this mapping of a two argument function

Sorry, I'm just starting to learn mathematica. I have the following two-argument function: h[{x_, y_}] := x ^ y When I do the following: ...
4
votes
4answers
586 views

Remove linear trend from data

I have a large data set with 150k lines and two data columns. I noticed that there is a linear trend, which I want to remove. So, I do the following: first fit with a linear model ...
4
votes
2answers
548 views

Linear regression in a chosen range of points

Hi I'm absolutely newbie in Mathematica and have following problem: My list looks like {{50, 0.75}, {51, 0.76}, ..., and I want to choose a range out of my ...
2
votes
2answers
271 views

Why do Plot and ListPlot use the last PlotStyle when only one thing is plotted?

When a list of PlotStyles is given, ListPlot behaves as expected when there are multiple things to plot: ...
3
votes
1answer
382 views

on RegionPlot3D and ContourPlot3D

First I have ...
5
votes
2answers
132 views

RSolve gives a Context::ssle error

I want to solve the following recurrence equation RSolve[{(k + 2) c[k + 2] q^(k + 1) - c[k] == 0}, c[k], k] During calculation in Mathematica I get this ...
6
votes
0answers
111 views

ShowSelection color

The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells. ...
9
votes
1answer
134 views

Is it possible to make v9 ignore case when completing names?

In v8, I could type, say, fulls or texf to get FullSimplify or ...
9
votes
0answers
648 views

Numerically solve 2nd order differential equation with singularity

Consider a second order differential equation with a potential that diverges at some generic value in the variable. For example: $$-y^{\prime\prime}(s)+\frac1{\mathrm{cn}{(s\mid k^2)}}y(s)=0$$ where ...
1
vote
1answer
142 views

Conditionals slower than operators?

I want to make my application faster. I tried to replace an If condition with operators. The If condition is ...
1
vote
1answer
249 views

Mismatch between Axes -> True and Frame ->True

Using Axes -> True of the following........ ...
15
votes
6answers
2k views

How to find major color in a picture?

I want to find the major color (the color which appears most often) in a picture and do some analysis later. For example, if I have this picture: What I want to do is find out that gray, red, ...

15 30 50 per page