3
votes
1answer
183 views

Converting this recursive function definition into nested sums?

Here's the recursive function I'm using: DH[n_, k_, s_] := Sum[Binomial[k, k - j] DH[n/m^j, k - j, m + 1], {m, s, n^(1/k)}, {j, 1, k}] DH[n_, 0, s_] := 1 Now, ...
-2
votes
1answer
376 views

Interpolating Function inside of NDSolve

I have a problem and it seems to be connected to an Interpolating function inside of an NDSolve command. The resistivity[x] ...
12
votes
0answers
857 views

Mathematica performance on Mac

I recently got a trial version of both Mathematica 9 and MATLAB 13a for Windows. I was stunned by the performance difference in the Windows and the Mac version. It was a simple test in matrix ...
2
votes
0answers
32 views

Detecting a more general pattern [duplicate]

I need a function that, given 2 patterns, determines if the first pattern is more general than the second (i.e. that any expression successfully matched by the second, will be successfully matched by ...
2
votes
3answers
193 views

Graph with $\{a,b\}$ as Vertex Instead of Number

I'm trying to create a graph which has $\{a,b\}$ as labels: ...
2
votes
2answers
180 views

While loop doing cell evaluation not completing

I am trying to get a loop structure using While to repeatedly evaluate another cell referred to in its body (using a cell tag). ...
9
votes
2answers
240 views

PlotRangeClipping not working correctly with small ImageSize and PDF-export

Although Mathematica has some nice plotting capabilities, there are some things which are annoying me: I like to export a Graphics oder Plot to PDF for use in $\LaTeX$. I like to a have an ImageSize ...
6
votes
3answers
464 views

Calculate probability function

I would like to calculate the following with Mathematica: Let $X$ be a random variable with probability function $$p(x)= \left\{ \begin{matrix} \frac{x}{6} & \text{for }x \in \{1,2,3\}\\ 0 ...
10
votes
4answers
2k views

How to convert rgb to YCbCr?

I looked at ColorConvert, but haven't found a relevant option. Is there a built-in function do this?
1
vote
1answer
93 views

Multi-table SQLSelects

I'm trying to figure out how these statements really work, and am having some trouble with the documentation (and the software!). Using the example publishers database (Mathematica 8), the following ...
3
votes
1answer
76 views

Web deployment of document containing URLSave function

Is it possible to deploy a Mathematica notebook which contains a dynamic URLSave function? My code has the following structure: ...
2
votes
1answer
261 views

Call Functions From File Without Modifying Context (Sandbox)

Let's say I have file named test.m containing test[arg1_] := ( Print[arg1];) What is the best technique for calling test like ...
2
votes
1answer
81 views

Having SetOptions[] affect CDF styling

Instead of writing a package and importing it, at the beginning of many of my .nb files I have a string of SetOptions commands which govern things like plot styling. However, when I subsequently make ...
10
votes
1answer
357 views

Predictive interface eats my Esc key

After updating to version 9, I found the predict interface very helpful except there is a small problem always annoying me: Consider this: I have a list ...
1
vote
3answers
2k views

Find dy/dx given an equation

Here's a homework problem from the Coursera course Calculus: Single Variable by Robert Ghrist Find the derivative $\frac{dy}{dx}$ from the equation $x \tan y - y^2 \ln x=4$ I wanted to check my ...
5
votes
1answer
170 views

How to trash files / directories?

Both DeleteFile and DeleteDirectory can only delete files / directories, and lack the option to move them to the trash. Is ...
9
votes
1answer
360 views

Drawing Zonotopes from Adjacency Matrix

This is crossposted in cs.stackexchange.com, but I have been trying to use Mathematica do this and figured it might be more appropriate to ask here. Define a "simple zonotope" to be a regular ...
0
votes
1answer
107 views

Computing a mean of median list of points

Given a array of lists with the same number of here N = 10 elements: ...
0
votes
1answer
128 views

Embedded CDF Not Working

I happened to be looking at an old CDF (19 months old). It previously worked and does not now. It works if downloaded (opening or at URL). It requires dynamic functionality to be enabled but no longer ...
1
vote
1answer
156 views

Expansion of functions in the real domain

When I try FullSimplify[FunctionExpand[x^(1/12)(1/12) LerchPhi[x,1,1/12]]] I have a nice answer with many complex numbers. Is there any way to have the ...
-1
votes
1answer
236 views

What does “levelspec” mean in the documentation? [closed]

The following code returns the first three integer elements of Sqrt[Range[100]]: ...
4
votes
4answers
510 views

Graph Creation in Mathematica: TSP

I'm trying to create the following graph in Mathematica Where do I start? I'm specifically trying to make a graph so that I can use it in TravelingSalesman[g], ...
5
votes
4answers
184 views

Creating simple table

How do I create a table like this? I find it very hard to create the zero-row and zero-column. Edit: I am looking for a solution where a formula eg. Table or something else is being used. I can ...
4
votes
0answers
91 views

2X slower with ; — LibraryLink performance problem [duplicate]

This is the continued problem of the LibraryLink memory usage question here and here. In the following code, there is a 2X performance difference with only the change of ";". ...
2
votes
2answers
109 views

StringCases functionality on a varying rows of data

There is a string in this form: ...
-1
votes
2answers
105 views

How Do I Plot A Binomial to the Right of the Origin?

I'm having a seven element binomial distribution: BinomialDistribution[7, 0.5], x],{x, 0, 8}] I would like to locate to any arbitrary point on the X axis. Mathematica will let me have eight columns on ...
1
vote
2answers
233 views

Plotting a dynamical NonlinearModelFit Function

Currently I'm playing around with dynamics and the NonlinearModelFit function. To be precise, I want to fit a function the data, which range I want to specify ...
3
votes
2answers
735 views

How to Plot Prism in Graphics3D

I want to create an image of a rectangular prism, but there is no built-in primitive for it. One method to display a prism is shown in whubers's answer to Mathematica for teaching orthographic ...
2
votes
1answer
227 views

Forcing Interpolation to be smooth at its boundaries

I'm looking at a piecewise function of two lines, which has a kink, such as: ...
1
vote
1answer
94 views
1
vote
1answer
128 views

How do I append a graph to last column of a table?

rmsdata= Partition[ReadList["RMStabledata.txt", Number],29] ...
0
votes
1answer
41 views

Evaluate a list of Expressions from file

I have a list of expressions in a text file. I would like mathematica to evaluate and export the results at the end of the same file or in a new file. The expressions are in seperate lines in the text ...
4
votes
2answers
106 views

InputField as part of a Graphics

I am building a model for which the user can enter parameter values. I would like to create a "graphical layout" of the model in which I display several InputField-s to enter the numerical parameters, ...
4
votes
1answer
906 views

Use of $Assumptions [duplicate]

I don't really understand the behaviour and the usage of $Assumption. For instance, when I set $Assumptions = λ > 0, I expect ...
1
vote
1answer
421 views

How do I make a frequency table from a histogram (data set)?

I have a data set. ...
1
vote
1answer
57 views

Complex Values in TSV

I have some data in TSV format and am attempting to import it into Mathematica. Real values import just fine, but complex values keep on getting interpreted as strings. I attempted to figure out ...
0
votes
3answers
119 views

Why is my funtion is wrong? [duplicate]

My aim is to know whether the data has same element. ...
0
votes
1answer
151 views

Making a C++ callable .lib or .dll file from a Mathematica notebook [duplicate]

MATLAB supports conversions of their function files into C++ callable libraries. I was wondering if the same feature is also available in Mathemathica? If yes, can you please guide me where I can ...
1
vote
2answers
519 views

Contour plot of complex function: problem in choosing argument

I have a complex function F[x,y], and now I want to plot the contour F[x,y] = 0. What can I do in order to have the contour plot vs Re[x] and y (That is, I want to treat y a real variable and x a ...
0
votes
1answer
478 views

How to find the zero of a function?

I want to find out when a function has a real root. I first made a RegionPlot3D when the function is zero. ...
2
votes
1answer
166 views

How to use adaptive precision in matrix computations?

I wish to compute the pseudo inverse of rectangular (or square) matrices by the cubically method of Chebyshev given by $X_{k+1}=X_k(3I-AX_k(3I-AX_k))$ where $X_0=\frac{1}{\|A\|_F^2}A^*$. The procedure ...
0
votes
2answers
98 views

Rearranging a simple algebraic equation

Suppose I have a simple algebraic equation like: ChebyshevT[4, p] == 0 1 - 8 p^2 + 8 p^4 == 0 and I want to solve for the ...
2
votes
1answer
800 views

How to increase font-size of Text in ShowLegend

The default font-size of Legend text generated using ShowLegend[] is too small. How does one increase this? The code I am ...
4
votes
3answers
372 views

Slow image manipulation

This is some extremely simple code that shows an image and manipulates a circle (that will be used to select a region of the image to analyze). All those Dynamics ...
5
votes
1answer
393 views

how can I convert a Grid object to a Graphics object?

I have a figure (which is by combining different plots) that I generated using Grid[]. The problem is, I want to specify the ...
1
vote
2answers
418 views

How to make a Dynamic Calculator to solve a quadratic equation?

Taking my first steps in the world of Mathematica Programming. The aim of my program was to modify Wolfram's dynamic calculator (which performs an addition subtraction and a product - in response ...
1
vote
2answers
92 views

How can I plot a polynomial at a specified set of x values?

I want to plot the following polynomial: ...
3
votes
1answer
77 views

Want actual cell data from CellEvaluationFunction

Let's say I print a cell like so. CellPrint@Cell[ BoxData[" "], "Input", Evaluatable -> True, CellEvaluationFunction -> Function[Print[#];] ] Now I ...
0
votes
1answer
210 views

How can I build a GraphicsGrid of fixed size that rearranges the empty plots?

OK, let's make one final attempt; they say the third time is the lucky one! Following @rm-rf 's suggestions, I will try to be as clear as I can. My Mathematica code reads and plots simultaneously ...
3
votes
7answers
585 views

Finding the midpoints of an ordered list of numbers

Suppose that I have an ordered list of numbers. The numbers in the list may be evenly spaced, but they may not be. Here are two examples, list1 and ...

15 30 50 per page