1
vote
0answers
9 views

Extracting the function from InterpolatingFunction object

I've used Interpolation[] to generate an InterpolatingFunction object from a list of integers. ...
6
votes
3answers
40 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
0answers
30 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? ...
7
votes
3answers
93 views

An inverted pyramid

I want to draw a pyramid approximately like this ...
2
votes
2answers
40 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 ...
1
vote
0answers
30 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$ ...
0
votes
1answer
21 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 ...
7
votes
2answers
59 views

Vertical (mis-)aligning of plotmarkers and legend text in V10 PlotLegends

Consider this example, taken from the docs and modified for a larger font size using Style (V10.0): ...
-3
votes
0answers
47 views

Overflow problem [on hold]

I am Rajat, working out a fluid flow problem using shooting technique with 4th order Runge Kutta method. The problem wants me to guess 3 initial values simultaneously. for this i used 4 nested FOR ...
3
votes
0answers
20 views

Interpolation on an unstructured (mostly-structured) grid in 4D+

I frequently need to perform interpolations on an unstructured grid. Mostly, with the purpose of filling grid holes and then later continue with regular grid interpolations. Mathematica V9 and V10 ...
5
votes
1answer
21 views

How can I disable the “convert to freeform linguistic input” dialog box?

So I'm putting in some function, busy typing away. Then after I've entered some text, I pause for a few seconds. In this time, the notebook pops up the question "Convert to Free-Form Linguistic ...
6
votes
1answer
93 views

Extract common part from expressions

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. ...
3
votes
2answers
77 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}] ...
1
vote
0answers
23 views

Inconsistent linearity of inverse Fourier transform

I am trying to compute the inverse Fourier transform of this expression fhat[w_] = (Exp[-2*I*w] + Exp[2*I*w]) using ...
0
votes
0answers
20 views

Word wrapping in Code cells

The style for Code cells has no word wrapping. I don't like this as code lines either have to broken manually (with ugly, poorly indented results) or left largely invisible beyond the right of the ...
1
vote
0answers
18 views

Meaning output ANOVA post hoc tests

I am carrying out an ANOVA in Mma, and I wanted to apply a post-hoc test, but I do not understand the output that is given. It says e.g. Model-> Duncan, {4, 5} ...
10
votes
1answer
513 views

Is there a better way to “grow” black tulips?

I used the following clumsy way to obtain a bundle of black tulips. Is there a better way to do so? ...
3
votes
2answers
144 views

Rounding the coeffcients in a polynomial

I have a very large polynomial with Complex Numbers as coefficients. Due to many calculations, there are rounding off errors. I know however by theoretical considerations, that the coefficients are ...
2
votes
0answers
22 views

StateSpaceRealization “ControllableCompanion” does not generate ControllableCompanion form from DE

I must be doing something wrong, but do not see it. There is an option in Mathematica control system function StateSpaceModel where one asks it to generate the ...
1
vote
1answer
73 views

Function returned an unexpected list

I was trying out a question in Wellin's Programming with Mathematica that says the following. Question: Given a set of points in the plane (or 3-space), find the maximum distance between any pair of ...
5
votes
1answer
108 views

Interpolating an Antiderivative

I'd like to be able to make InterpolatingFunctions for antiderivatives of functions that can't be integrated symbolically. However, the following code returns several error messages: ...
2
votes
2answers
53 views

Manipulate a parameter within the PlotLabel

Very similar to Parameters in plot titles in which I want to call a parameter from an array using PlotLabel in my plot using ...
2
votes
0answers
34 views

The case for “Across” generalizing JoinAcross

EDIT: Initially, I called this function "KeyOuter", but "Across" is more appropriate given the connection to JoinAcross. Given: ...
6
votes
3answers
55 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
1answer
52 views

Remove values from list element, and add to other element

Basically what I need is to make a list of 400 elements, all have value 1. The next step is to create a function, that subtracts value (-1) from an element, and adds that to another element. So: ...
0
votes
0answers
37 views

Using indexed variables to make a vector — Iteration limits exceeded [on hold]

I am trying to do an implicit numerical integration scheme for the 1D heat equation. This basically amounts to diagonalizing a matrix equation at every time-step of the simulation. So in order to do ...
7
votes
1answer
191 views

Kernel crashes when plotting $z=\sqrt{(x^2 + y^2)^0}$

Bug introduced in 7.0.1 or earlier and fixed in 10.0.1 I'm plotting a 3d-function, which makes Mathematica9 (at windows 7) crash all the time. Is it only for me or for somebody else as well: ...
1
vote
2answers
53 views
6
votes
2answers
79 views

Choppy curves with Manipulate [duplicate]

While manipulating the slider in Manipulate[], I experience choppy curves. These do however render correctly after letting go of the slider. The same phenomenon occurs when pressing the + or - button ...
0
votes
0answers
34 views

Is there a nice way to move numerical values from mathematica to excel file sheet each cells separately? [duplicate]

Is there a nice way to put lots of numerical values separated by comma into an excel file sheet's each cell from Mathematica? For example, when I have the output values like: ...
0
votes
0answers
25 views

Error when taking derivative or integral [on hold]

For some reason I am faced with this rather strange error while trying to take a derivative or an integral ...
5
votes
0answers
40 views

MathLink error while calling a custom Mathematica function - MLGet out of sequence

I am trying to call Mathematica 10 from F#. Following the C# sample code found in the Mathematica directory, I have written the following F# code: ...
-1
votes
0answers
42 views

Update variable with incrementing value [on hold]

I would like to have a vector v defined as v1 = A[[1]], v2 = A[[2]], etc. incrementing from 1 - 10 that is then used in a for loop. Currently, my code only computes e for v1 (giving e1), but I would ...
0
votes
0answers
12 views

Is it possible to plot a List of functions with different colors in Manipulate (or with substitutions)? [duplicate]

I'm trying to use Manipulate[Plot[... to do two things at once: Plot the multiple forms a function can take depending on the chosen value of a root inside the function, and 2. show how the functions' ...
5
votes
2answers
66 views

Exporting row vector as a column in excel

I want to export a vector in Mathematica to appear as a column in Excel. I am trying A={1, 2, 3}; Export["mfile.xls", {"A" -> A}] But it is showing 1,2,3 in ...
0
votes
0answers
31 views

Newbie CDF question

I am about to post some code (in various languages) to one of my blogs (WordPress), and was wondering if CDF is the best choice for Mathematica Source? Also, I am a little confused - for which aspects ...
4
votes
0answers
189 views

Dataset in Mathematica 10.0.1

Wolfram pages "Mathematica Quick Revision History" in Mathematica 10.0.1 release says: "New operators and compositions of operators enabled for associations functions such as Dataset and Query" ...
1
vote
0answers
36 views

Is there a way to convert the mathematica document into word document in a neat way?

Is there a way to convert the mathematica document into word document in a neat way? I tried by "save as" command and found something like Risk text format "*.rtf" but still many parts look messy.. ...
0
votes
0answers
106 views

Conceptual understanding of patterns [on hold]

Anyone who uses Mathematica's patterns cannot be left unimpressed by its power. To gain an understanding on how it might be working internally, I thought about the process and came up in fact with ...
2
votes
1answer
55 views

Find constants in a function? [on hold]

Let's say I have a function f[x] with n constants, e.g. f[x] = c1 * x + c2*x^2 + ... + cn *x^n I also have n conditions to find those constants, e.g ...
3
votes
3answers
87 views

Display Quantity in full form

Is there a way to display Quantity[] in full form in the output? I know you could use Quantity[valuse, Unit]//InputForm, but ...
0
votes
0answers
19 views

Why does my Dynamic NonliearModelFit keep running?

I have complex data and which I am fitting to a complex formula. In order to use NonlinearModelFit I split the formula and the data into real and imaginary parts. As usual NonlinearModelFit is ...
1
vote
1answer
71 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
0answers
34 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 ...
3
votes
1answer
26 views

How to set the width of grid elements in pixels?

That is all: How can I set the width of columns in a Grid in terms of pixels instead of 'ems'? To be more precisely, I want to create a grid that is 330 pixels ...
7
votes
2answers
180 views

Display variable name instead of value

Is there a way to display the variable name instead of its value? for example, I need something likevarname = 1; function[varname]; and the output is ...
2
votes
1answer
53 views

Variable number of controls in manipulate

i want to add a variable amount of variables to manipulate, but i got stuck at one point and can't figure out a solution (even after reading here for hours...). I have a function (e.g. here a ...
0
votes
0answers
27 views

Need Diffrent math Formula [on hold]

public int Level { get { return 1+(int)Math.Floor(Math.Pow(XP, 1/3.0)); } } I do not understand formula and i would like someone to give me ...

15 30 50 per page