-1
votes
0answers
48 views

Straighforward iteration with mathematica instead of recursion

I want to use a straightforward iteration method to calculate a function which depends on itself at the previous step. It was able to solve it as a recursion function for a small value of steps, but ...
5
votes
1answer
50 views

Determine return type of CompiledFunction expression

Is there a way to extract the types of the arguments and the return type from a CompiledFunction expression? I am writing a package for code generation (basically a wrapper around CCodeGenerate) where ...
8
votes
1answer
94 views

Tracking Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
0
votes
0answers
18 views

How to add Shift-Enter in external script?

I often generate MMA scripts externally w/ python to copy/paste into a notebook or run MMA directly on that file. I want resulting output interleaved w/ input commands, as would happen when the ...
0
votes
0answers
34 views

Wolfram Alpha and LaTeX [on hold]

Does WolframAlpha use LaTeX to represent mathematical characters? Is there any way to copy the LaTeX output?
9
votes
2answers
131 views

Extracting the function from InterpolatingFunction object

I've used Interpolation[] to generate an InterpolatingFunction object from a list of integers. ...
6
votes
1answer
130 views

Book about using Mathematica in real world engineering projects

So far I've abused Mathematica by only using it as a notebook. That's a big waste since I've bought a student-life time Mathematica 9 / SystemModeler license. My problem is that I'm not inspired to ...
4
votes
1answer
100 views

Filling a curve towards toward the top of the plot

I have a curve. If I want to color fill or shade, not towards axis but upward form the curve, what command can I use?
7
votes
3answers
212 views

How to plot a series using different colors depending on the y-value

I have a sequence of numbers ${x_1,x_2,\ldots,x_n}$. I would like to plot the sequence using ListLinePlot but use a different color depending on if the values $x_i$ are within $a_i<x_i<b_i$. ...
5
votes
1answer
51 views

Changing PDF version in Mathematica 10

With Export, I am generating pdf files with pdf version 1.5. Is there a way to generate them with pdf version 1.4 instead?
4
votes
1answer
57 views

Possible bug / numerical issues with HypergeometricU — any suggestions for a fast workaround?

I've encountered some problematic behaviour with HypergeometricU. I have a probability distribution on the positive integers that takes the following form after ...
3
votes
0answers
24 views

Held keys in associations

Jacob Akkerboom commented: Note that PositionIndex does work correctly with held expressions, whereas this is a bit painful to implement using ...
13
votes
1answer
285 views

How to add named characters to Mathematica 10?

It appears that native support for the Klingon alphabet has been removed from version 10: \[KlingonA] Syntax::tsntxi: "\"!(\[ KlingonA])\" is incomplete; more ...
4
votes
1answer
51 views

Building an arch in SystemModeler

I'm trying to learn SystemModeler and struggling a little... Building on the chain pendulum example from Wolfram, I've happily made a chain with revolute joints with spring/dampeners connecting the ...
1
vote
0answers
34 views

Generating 2D models from a 3D model

I have a model of cube with randomly distributed spheres included there. ...
3
votes
1answer
54 views

How can I create a set (list) provide a kind of rule/algorithm?

Example: S = {r ∈ Q : r² < 2} Let S be the set of all rational numbers whose squares are less than 2. It follows that 1 ∈ S, 4/3 ∈ S, but 3/2 doesn't ∈ S because 9/4 ≥ 2. Thank you.
2
votes
0answers
48 views

Numerical Solving Problem, PDE

It is not possibel to solve the given equation numerically or analytically with Mathematica. ...
8
votes
2answers
226 views

Numerical value of physical constants Mathematica 10

Is there a way to use the physical constants in calculations and have Mathematica 10 figure out the final unit and numerical magnitude? When I try ...
7
votes
1answer
130 views

Extract common subexpressions from expressions [duplicate]

I am trying to evaluate multiple independent expressions with common parts. I would like Mathematica to somehow give me this common parts. It's probably not so clear, so let me give you an example. ...
1
vote
1answer
16 views

Setup default temporal directories for CCompilerDriver

Problem: I have cyrylic symbols in my $UserBaseDirectory. As result temporal directory for CreateExecutable...
3
votes
0answers
102 views

Greek variables in 10.0.1

10.0.1 under Ubuntu 12.04 x64 .... Does everybody get greek variables emboldened? Is anybody aware of how to revert to previous normal display? The image below shows what I mean.
7
votes
3answers
191 views
2
votes
0answers
27 views

distributing definitions in an .m file and memory

I am dealing with a huge table stored in an .m file of size 4 GBs. Somehow when I call the table in .nb file it seems the memory increases not by 4 GBs but more than 10GBs (roughly checking from task ...
8
votes
2answers
95 views

Problem constructing Association tables with some operators

First, set up the example Dataset from the documentation: titanic = ExampleData[{"Dataset", "Titanic"}]; Why does this fail: ...
1
vote
1answer
29 views

NMaximize not substutiting parameters of objective function [duplicate]

NMaximize is not substituting parameters of its objective function. Is there a way to fix that? I have a three line program that exhibits the problem. ...
8
votes
5answers
135 views

Applying a function to a Dataset column conditional on another slot's value

How to apply a function to a column conditional on another slot's value? The Dataset documentation show only how to apply a function to named slots independently. The ...
89
votes
3answers
12k views

Alternatives to procedural loops and iterating over lists in Mathematica

While there are some cases where a For loop might be reasonable, it's a general mantra – one I subscribe to myself – that "if you are using a ...
6
votes
1answer
44 views

Bug with Initialization in DynamicModule?

In exploring Tracking Initialization, I came across this. The following usually shows a value for x of 300000 to ...
2
votes
1answer
92 views

Double integral changing the limits

This integral does not evaluate: Integrate[ Integrate[1/(E^((a - c)^2 + (b - c)^2) ), {c, 0, 1}], {b, -Infinity, Infinity}] However, reversing the integrals ...
4
votes
2answers
163 views

CurrentImage[] “unable to connect to camera”?

I have a new Macbook Pro (Retina), running Mavericks. For some reason I cannot access the camera in Mathematica using CurrentImage[] or ImageCapture[]. The result is: ...
1
vote
0answers
43 views

Inconsistent linearity of inverse Fourier transform

Bug introduced in 8.0.4 or earlier and fixed in 9.0.1 or earlier I am trying to compute the inverse Fourier transform of this expression ...
11
votes
2answers
1k views

Solving an ODE in power series

How do I find a series solution to an ODE? I do not mean taking the Taylor series of an exact solution; I want to solve nasty nonlinear differential equations locally via plug and chug. Surely, that ...
0
votes
2answers
88 views

Collapsing summation

I am trying to write a command to collapse the sum of terms into an expression with summation. Something like ...
2
votes
2answers
130 views

How to get the series coefficient of a function defined by a differential equation [duplicate]

I need a Taylor series approximation for $x(t)$, which is defined by the following differential equation. $\frac{dx}{dt}=-k_1 x+(1-x)k_2 e^{-k_3 t}$, $x(0)=0$ ...
8
votes
3answers
79 views

Create a closed notebook

When using nb = CreateDocument[], is there an option that prevents the notebook from opening automatically? And is there a command that opens the notebook when ...
3
votes
4answers
429 views

Why does Fourier give a shifted frequency?

I have a signal that I want to identify the frequencies in it, I used the Fourier function but I can't get the frequency correctly. Here is a simplified example: ...
1
vote
2answers
71 views

How to SemanticImport Multiple Excel Sheets

I have an Excel workbook with multiple sheets that I'd like to import into a dataset each. With Import I can target individual sheets by their name into a nested ...
2
votes
3answers
99 views

How to multiply specific columns in a matrix of data?

So I need to make a plot of some ~2000 data points I have from a spreadsheet. I'm able to import the data just fine, it stores it like so sundat ...
6
votes
2answers
136 views

A question regarding “DiscretizeGraphics”

I want to find the volume of a torus torus = RevolutionPlot3D[{2 + Cos[t], Sin[t]}, {t, 0, 2 Pi}] ...
9
votes
3answers
182 views

Find all heads a function is defined on

So say I've got a function g defined as follows: g[x_Integer] := x + 1 g[s_String] := s <> "!!!" How would I write a ...
1
vote
3answers
114 views

Improving convergence in a numerical integration (Version 5.2)

I have a double integral that I am trying to calculate numerically, and I'm having convergence issues. ...
8
votes
0answers
197 views

Version 10 cannot print properly?

Update Not fixed in version 10.0.1 I have two problems with printing in version 10. First, I can't print correctly with a setting of printing scale For example, I have some plots in a notebook, ...
9
votes
3answers
861 views

An inverted pyramid

I want to draw a pyramid approximately like this ...
1
vote
0answers
49 views

How to generate a 3D terrain from a terrain-map image? [on hold]

I attempted to generate a 3D terrain from a terrain-map image with the following code. What I got was a NULL terrain. What is wrong with my code? ...
2
votes
0answers
53 views

Solving a system of two nonlinear equations with many symbolic parameters

I have two nonlinear equations with two unknowns, $x$ and $y$, and many symbolic parameters, $a, b, c, d$. They look someting like: $\frac{1}{x}(1+x)^a (1-b)(cx+dy)=0$ ...
11
votes
1answer
147 views

Potential pollution of Global` context in fresh kernel

Bug introduced in 10.0.0 and fixed in 10.0.1 If I evaluate, with a fresh kernel Names["Global`*"] I get {"rhs", "z"} ...
8
votes
1answer
266 views

Mma10 mystery: Failure of pure function substitution with Interpretation?

Bug introduced in 10.0.0 and fixed in 10.0.1 I had code to display with subscripts from Displaying index as subscript on output: e.g. C[i] -> C_i with Notation[...] or Interpretation[..]? which ...
4
votes
2answers
80 views

How can I make DensityHistogram obey the lower bound in PlotRange in version 10?

Bug introduced in 10.0.0 and fixed in 10.0.1 In version 9, DensityHistogram worked with PlotRange as expected: ...
23
votes
1answer
510 views

What is wrong with triangle PlotMarkers in v.10.0.0?

Bug introduced in 10.0.0 and fixed in 10.0.1 In Mathematica 10.0.0 we have built-in graphical triangle PlotMarkers. Let us look closer on them: ...
4
votes
1answer
104 views

Why GridLines->function does not work with LogPlot?

Bug introduced in 10.0.0 and fixed in 10.0.1 Version 10: This works: ...

15 30 50 per page