0
votes
0answers
5 views

ErrorListPlot with errors on both axes

I am trying to plot some data with errors on both variables: tihs is what I do ...
1
vote
0answers
8 views

'eps' equivalent in Mathematica

In Matlab there is a function 'eps'. eps Spacing of floating point numbers. D = eps(X), is the positive distance from ABS(X) to the next larger in magnitude floating point number of ...
1
vote
1answer
4 views

How to share `ChartLegends` among multiple `BoxWhiskerChart`s in `GraphicsGrid`?

First, create two BoxWhiskerChart: box1 and box2 ...
0
votes
0answers
15 views

Help needed for solving nonlinear ODEs

I want to solve fourth order nonlinear ODE with known boundary conditions using Predictor Corrector methods, or shooting methods in Mathematica but don't know how to solve them with these techniques. ...
1
vote
1answer
28 views

Joint Distribution with a Constant

I would like to simulate from a joint distribution multiplied by a constant. e.g. 3*NormalDistribution[0,1]*NormalDistribution[1,1] I tried using something like ProductDistribution but that doesn't ...
0
votes
2answers
38 views

PEANO Integers using successor function

I'd like to define the integers and operations on it by using terms. Starting from zero->init[] and nth->succ[n-1th] where succ[] is the successor function. I ...
6
votes
3answers
49 views

Minimizing a function with a constant $l > 0$

I'm VERY new to Mathematica and would like some help with minimizing a function. $$f(x) = \frac{1}{2} \sqrt{\frac{\left(l^4+x^4\right)^2}{l^4 x^2}}$$ I want to find which $x-value$ (probably ...
-3
votes
0answers
34 views

Function Expectation

I want to have a function result from this expectation is it possible? ...
0
votes
1answer
24 views

Product Distribution with Copula

I am trying to create a joint probability function that is of the form: f(a,b,c)=f1(a).f2(b).f3(c).copula where ...
2
votes
1answer
38 views

Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
-1
votes
0answers
10 views

Interpolation using 3 input function [on hold]

I'm trying to interpolate a function: I have 3 inputs: x1,f1 x2,f2 x3,f3 and I want to have at the output a function of f1, f2 and f3. xout=g(f1,f2,f3) I don't know how to do it on Matlab. the ...
1
vote
1answer
33 views

Discrete Fourier Transform with x axis data?

Usually, Fourier Transform in mathematica is supplied by y data only, like the famous Sin[x] transform example. What if my data is a list of ...
0
votes
0answers
25 views

Can I use Interpolating function as an input in another NDSolve?

it´s my first time here, so let me know if I've not been clear. I'm trying to solve a numerical diferential equation, but my equation contains two numerical solutions from a previous problem. Of ...
1
vote
0answers
30 views

Astronomy: Transform coordinates from horizon to equatorial

I'm using Mathematica 10. Giving a longitude & latitude on Earth, giving a local time, how can I transform Horizon Coordinte (az , alt) to Equatorial Coordinate (RA , DEC). Use function so I can ...
0
votes
0answers
23 views

coordinate system problem

I had an issue about the coordinate system of mathematica. I have a {800,600} image acquired with a camera. The projection matrix P of the camera is calculated using the calibration task. Now, when I ...
3
votes
1answer
40 views

Is it possible to change the MinPrecision in command “Compile”?

I'm using "Compile" to do some numerical calculation and I need high Precision. I was wondering if it is possible to change the Precision in command "Compile" to some $MinPrecision?
2
votes
1answer
63 views

EMF format imported in Word looks worse in version 10

In my work, I frequently use the "CopyAsMetafile" and "Paste" function in my Word document. Recently, I started working with Mathematica version 10 and negatively surprised that the display of ...
1
vote
1answer
59 views

Derivative of a plot

I plotted a graph numerically, so there is no information of a function of the graph. Now i want to plot the derivative of this graph. Is there any way to do it in mathematica? I have the following ...
0
votes
1answer
34 views

Import Data using selection criteria

I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ...
-1
votes
2answers
51 views

Module function corrupts string? [on hold]

I have the module who should replace some elements of a matrix with checkboxes ...
3
votes
2answers
192 views

Speed up calculation

First of all thanks to: rm -rf, Mr.Wizard, Simon Woods, Pickett, Piotr Wendykier, Mac, Yves Klett, belisarius, halirutan, bill s, nikie, wxffles, ... Everybody of you helped me (a mathematica ...
-1
votes
1answer
51 views

How to integrate a generic integral? [on hold]

I'm trying to integrate this between $0$ and $T/4$: $$\frac{2}{T}V\int{Cos(wt)dt}$$ I use this in Mathematica: $$\frac{2}{T}(\text{Integrate}[V\int \text{Cos}[\text{wt}] \, dt,\{t,0,T/4\}])$$ But ...
5
votes
5answers
154 views

Select a particular rules out of a list

rule = {beta -> 4, alpha -> 2, x -> 4, z -> 2, w -> 0.8} Select[rule, beta] Select[rule, beta &] Select[rule, beta -> _ &] How would I ...
2
votes
0answers
46 views

Drop all powers from multinomial [on hold]

How to automatically replace an expression like x^3 y + x y z^2 by x y + xyz in Mathematica, i.e. replace all ...
0
votes
1answer
56 views

My matematica notebook dosen't work,its bring syntax error ,why?

i have many matematica notebooks and all of them are working clearly besides one which is the most important for me.There is my whole project.Please someone help me.What should i do???
0
votes
1answer
35 views

Replace variables and redefine a function

I would like to redefine a function f(x)=1+2x^2 to a new function g(y)=1+2y by using the replacement ...
10
votes
2answers
149 views

Difference between Association and Dispatch

In the example below, Association has a different behavior from Dispatch: ...
5
votes
3answers
136 views

Is it possible to find generating functions of infinite sequences with Mathematica?

I'm trying to find the generating function of a sequence as $(0,1,0,1,0,1,\dots)$ but reading Mathematica's help on FindGeneratingFunction[] seems to tell me that ...
0
votes
1answer
26 views

How to use rules in simplify this expression?

D[1/(1 + Exp[-x]), x] % /. {1/(1 + Exp[-x]) -> p} Suppose I know that the rule can be applied, but Mathematics just won't do it straight away as the expression ...
0
votes
0answers
20 views

Export to PDF file and use in latex, weird behaviour from using Acrobat

I have put all files here. All pictures are Exported from Mathematica 10.0.1 X64 (win7) using Export["filename.pdf",plotobject]. I first complied the latex file, ...
1
vote
2answers
96 views

Josephus problem

See the Josephus Problem. My code takes in two numbers; one is the number of participants, and the other is supposed to be the number of players skipped between executions. ...
0
votes
1answer
58 views

Matrix form of complex numbers

Complex numbers have matrix form. But some 2x2 matrices while differ, represent the same complex number. To compare complex numbers one has to transform the matrices to the form \begin{pmatrix} a ...
3
votes
3answers
88 views

Colorize an image using two parameters

I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ...
0
votes
1answer
26 views

Compile a Module wich has a loop with undetermined bound

Suppose I have such a module as below: test[int_] := Module[{m}, m = Table[i, {i, 1, 10}]; Do[m[[i]] = i*i, {i, 1, int}]; Return[m] ] The bound for ...
2
votes
0answers
59 views

Cloud cover fraction

I need to make use of Mathematica's WeatherData functionality, the CloudCoverFraction property, specifically. However, it does ...
4
votes
1answer
93 views

Mathematica can't export $\sqrt{}$

It looks like version 10 can't export to pdf correctly with square root. For example: ...
0
votes
0answers
70 views

Froze Mathematica and now it's buggy [on hold]

Today I was trying to generate some fractals, and I had the bright idea to generate an over 10000px by 10000px image. When I went to save it, mathematica froze up and my computer told me I was running ...
1
vote
1answer
61 views

RandomVariate form a Specific Distribution with Restrictions

There are a lot of questions about generating random numbers form both uni-variate and bi-variate distributions. Mathematica has a lot of built in distributions for that purpose. However, I could not ...
0
votes
0answers
49 views

Simple recursive function?

I'm new in Mathematica and need some help. I'm trying to make a recursive function but I'm not sure how to iterate through more than one item. To be more clear, take this pseudo code for example: ...
4
votes
1answer
63 views

Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?

Here is a small section of code from this SE question which computes the real part of the dilogarithm (the upper limit of the sum is increased for demonstration purposes): ...
2
votes
0answers
53 views

pattern matching and applying a function, not working as expected [duplicate]

Consider the following code G[x, y] /. a_[b__] -> Total[a @@@ Permutations[List[b]]] I expect it to give G[x, y]+G[y,x] ...
3
votes
1answer
65 views

ListPicker with conditional selection

I am reading data from a SQL Database and want to manually sellect multiple rows. ListPicker works very nicely, the only added complication is that I need to not only select the records, but also ...
2
votes
1answer
50 views

FullSimplify wont simplify to expression with lower SimplifyCount

I have been trying without success to get FullSimplify to work on some trigonometric expressions. It refuses to convert them to forms that are clearly much ...
0
votes
0answers
48 views

Manipulate plot [duplicate]

How can one do this: ...
1
vote
0answers
42 views

Design matrix rank does not match

I'm attempting to fit a linear model and Mathematica returns the error message: "The rank of the design matrix 9 is less than the number of terms 10 in the model. The model and results based upon it ...
0
votes
0answers
79 views

GraphicsGrid output is incorrect - image seems compressed [on hold]

I want to plot a large number of large data files but the output images are incorrect when I'm iterating over a GraphicsGrid with the Export command. ...
6
votes
2answers
163 views

Mathematica 10 ListPointPlot3D PlotTheme bug?

I am using Mathematica 10 to generate a 3D point plot of a crystal lattice structure. I wanted to set the PlotTheme to ...
3
votes
3answers
97 views

How to close external app from Mathematica?

Is there any analogue to SystemOpen for closing applications from Mathematica? Documentation says: SystemOpen["file"] is essentially equivalent to double-clicking the file icon in your operating ...
0
votes
0answers
48 views

A reliable CPU timer [on hold]

I was evaluating a sample program and at the end evaluated TimeUsed. When I ran the program for the first time TimeUsed was ...
1
vote
1answer
43 views

Optimizing alphametrics code

First of all, thank you all in this great community. I have been reading a lot of threads about Mathematica optimization learning things like using Compile ...

15 30 50 per page