2
votes
1answer
86 views

CUDA paclet and Mathematica 10.0.2 code problem

In Windows 8.1 64bit and Mathematica 10.0.2, I used the latest cuda paclet 10.0.1. However,following the sample code in CUDALink User Guide, the CUDAFunctionLoad returns an error. I can not figure ...
3
votes
2answers
191 views

Fullsimplify does not simplify Abs'[1.-a]

I have to simplyfy an expression involving Abs' This works: FullSimplify[Abs'[1 - a], a ∈ Reals] Sign[1 - a] but this ...
1
vote
0answers
25 views

Parallel Kernel Status

For parallel computing, the window Parallel Kernel Status shows some information on the subkernels. I can use two kernels, and which each of them I can do parallel computations. However, it seems that ...
1
vote
0answers
65 views

Fast export of large numerical data

Edit It seems that the bottelneck is not due to eigen value problem. I will esit the question soon. I have a 6000by6000 matrix which I got after some calculations. I want to get the eigenvalues and ...
2
votes
1answer
54 views

Overlapping EdgeLabels

I have to make a directed graph for a maximum flow algorithm assignment. Although I have managed to make the graph for the better part, it still needs some work. The problem is that Mathematica ...
1
vote
1answer
38 views

RunProcess with mdfind and -onlyin option

I have problems running the bash code mdfind -onlyin /some/folder my_string This works on the terminal, but if I try ...
7
votes
3answers
179 views

Unable to compute the area of region

For a set of data: ...
1
vote
1answer
62 views

Summand is not numerical at some point

I am trying to do some numerical integration with the following codes: ...
0
votes
0answers
67 views

Solving a set of equations

I have x = {1, ..., 10} and y = {11.33, 12.63, 12.08, 11.17, 10.24, 9.41, 8.67, 8.02, 7.45, 6.96}. I am trying to fit a model ...
5
votes
3answers
235 views

Simple image processing very slow

I have compared the speed of some simple image processing routines between Mathematica an IDL. 1. Reading of a grey scale png image of (720,577) pixels: The image is: Mathematica: ...
1
vote
1answer
49 views

eigenvalues distribution

How does one plot eigenvalues distribution of a large matrix? I want to plot the distribution to show that the set of eigenvalues of the matrix of current interest is symmetric with respect to the ...
0
votes
0answers
36 views

3D Ploting in Mathematica Function is getting smeared [duplicate]

A = x^2 + y^2 + Sqrt[x^2 + y^2]; B = x^2 + y^2 - Sqrt[x^2 + y^2]; Plot3D[{B}, {x, -1.5, 1.5}, {y, -1.5, 1.5}] I want to remove this sky blue region from the ...
6
votes
1answer
175 views

Better replacement rules to perform this change of variables?

In cosmology, it is common to work with both a normal time variable t and a “conformal” time variable τ, which is defined such ...
4
votes
1answer
164 views

Monte Carlo Volume Calculation and Speed Up

I am trying to do a Monte Carlo area calculation for an irregular area defined by: $$0 \le x \le 1, 10 \le y \le 13, y \ge 12 \cos(x), y \ge 10 + x^3$$ I used the code with modifications (so I can ...
1
vote
2answers
65 views

how to get continuation of square matrices with periodic diagonal band automatically?

I want write a function that can automatically analyze any square matrices with periodic band diagonals and give continuations of them. But I can't figure out an elegant way to do this. Suppose we ...
4
votes
1answer
41 views

Filtering Query Nested Data (Dataset and Association)

I am trying to filter a nested Dataset. I have some data that looks like this (curated for this example): ...
3
votes
0answers
46 views

Export and manipulate 3d plots

How can I export 3d Mathematica plots such that I can put them into a presentation and still being able to rotate them? Is there a specific format or does it depend on the program used to create the ...
-1
votes
0answers
27 views

Gif of onset of Landau level [closed]

I'd need to draw the energy levels of a 2d rotating harmonic oscillator of frequency $\omega$ and create an animated gif to show how the levels change when the the rotation angular velocity $\Omega$ ...
0
votes
1answer
47 views

How to fit this data to be used in NIntegrate later?

I have a list of data points that resemble a chi-squared distribution (long tailed gaussian) that I am having trouble fitting or finding an equation with. The goal is to use the fitted equation in an ...
0
votes
0answers
33 views

Add a contour plot on the xy plane of a 3D plot [duplicate]

I have this: ...
1
vote
1answer
48 views

FRED api reports all data in given month with same date

When I use the FRED package to retrieve weekly data, all of the data points for a given month have the date as the last day of the month instead of the date for the week of the data. ...
0
votes
0answers
37 views

Plot function failure, and understanding how mathematica selects recursion points for correction

I think it is best to start out by directing everyone to this link. The discussion concerns why the Plot function fails to accurately generate a simple sine wave for given parameters. The answer given ...
0
votes
0answers
31 views

Simple expression syntax [closed]

I want to write a simple expr. in Wolfram Maathematica 10, but couldn't get it to work. Take this for example: f[x0,...,xn] = f(x0) / (n+10)! Any help/link to a ...
3
votes
3answers
68 views

ReplaceImageValue and ReplacePixelValue extremely slow

I have a grey scale image: and I am doing the following: bin = Binarize[image, 0.18] ...
0
votes
0answers
117 views

Is there any way to connect several images together?

I want to do something like the following, is that possible? As a input I want to provide several images and I want the output to be a single image. Is there any way to do this? I used ...
9
votes
2answers
170 views

Sampling phase space uniformly for a given energy

For example, for the 1D harmonic oscillator, the energy is given by: $$ E = \frac{1}{2 m} p^2 + \frac{m \omega^2}{2} x^2 $$ where x is position and p is the momentum. I would like to sample phase ...
2
votes
0answers
33 views

Nested `TensorContract` bug

When nesting TensorContract the result I get is wrong. Input: TensorContract[TensorContract[A, {{1, 3}, {2, 4}}], {{1, 2}}] ...
0
votes
1answer
54 views

How to fill a Marshal buffer with whitespace using NETLink

Further to Todd Gayley's answer on string handling in a DLL function, I have the following code: ...
4
votes
0answers
84 views

Creating REST Web Service with webMathematica

Someone knows how can I implement a REST Web Service with webMathematica? The SOAP service is well documented here and in the webMathematica User Guide. I saw that is possible to create a REST ...
0
votes
0answers
25 views

Parallel assigning to an Association

This is a simplified example of a problem I ran into. I want to count how often a subkernel executes a given computation. So, after having launched the subkernels, I construct an association with ...
2
votes
2answers
133 views

Color Transfer from colored image into grayscale image

At first I did this where image is a grayscale image and example is a colored image ...
1
vote
0answers
72 views

Equation Solving

As I stated in this question I want to solve a series of equations while setting some rules such as q[2]->1 or q[2]->3*10^-4. However, what should I do if I want to set another rules to my input? I ...
0
votes
1answer
39 views

Aborting from a Dialog box

I'm trying to abort a While cycle, with a dialog box. I've tried the following: ...
0
votes
0answers
19 views

Error when converting a string involving superscript after closing square bracket using ToExpression

I would like to store a piece of code in the form of a string, make some string transformation to it and get the new code evaluated using ToExpression. Everything works just fine but one: if there is ...
2
votes
1answer
61 views

ParametricNDSolve problem

when i use ParametricNDSolve, the output is not a explicit function, for example: ...
2
votes
1answer
60 views

How to get a audio file's duration time in Mathematica?

I have a *.avi file and if I want to know the file's duration time: I can use this code to get the result: Import["test.avi", "Duration"] or the code to get the ...
3
votes
2answers
102 views

Slow rendering in GraphPlot3D

Is there a way to speed up this rendering? I have to make this call many times in order to make an animation of some dynamics on the graph g. Thus dynamics are carried in the list var. Each entry in ...
-1
votes
1answer
40 views

Simple question involving triple integrals and spherical coordinates [closed]

Using mathematica 9.0 I am attempting to evaluate triple integrals via spherical coordinates. For example, I enter: ...
3
votes
1answer
99 views
0
votes
1answer
75 views

Non Linear Equation Solving with Matrices

Suppose I have the following matrix equalities: A=X, B=Y where the left-hand side matrices are numeric and the right hand side contains non-linear combinations of unknowns. Since I have quite a few ...
2
votes
1answer
52 views

How to protect function variables [duplicate]

I am sure this has been asked before, but I can't seem to find the right solution. I want a function to be the solution to a differential equation ...
0
votes
0answers
19 views

linear algebra, space vetors [migrated]

I am having difficulties in proving whether a particular E is space for example IR, so I would like if you could do this exercise. Determine whether IR ^ 2, with the operations described, is a real ...
5
votes
2answers
93 views

How to set InputAlias for all future notebooks that are opened in current session?

This code (SetOptions[#1, InputAliases -> {"xx" -> "X"}] & ) /@ Notebooks[]; will define the alias [esc]xx[esc] to ...
0
votes
0answers
66 views

How do I display a value on the screen? [closed]

I would like to attribute a value to an input variable, say k like so k = Input[“ ”] I would like the value(s) attributed to ...
1
vote
1answer
239 views

Millionaire quiz in mathematica

so here's the deal. I'm trying to write a millionare quiz in Mathematica. Now, this has been already done in other coding languages, specifically I've seen it done in C here: ...
4
votes
3answers
367 views

How to transform power of -1 into exponential [duplicate]

After FullSimplify, Mathematica usally gives some coefficients like ((-1)^(1/5)) But I don't want this form, I want ...
5
votes
2answers
133 views

Appending and Prepending columns to a dataset in 10.0.2.0

I just experience a problem in prepending columns to a dataset. I did this a hundred times in 10.0.1.0 - no problems. Now it seems as if it is only possible to append/prepend one column at a time. ...
4
votes
1answer
70 views

Is it possible to move .mx file from one server to other?

I have mathematica file in one server along with .mx file. Is there any way to move the .mx file from one server to other such ...
0
votes
0answers
33 views

How to avoid losing the done part of `Table` when stopping it? [duplicate]

Often, when I use Table, it takes too long to compute all the elements of the would-be table. I then stop it with Alt+. and ...

15 30 50 per page