10
votes
0answers
82 views

Reading from a socket stream

I noticed an undocumented socket package (SocketLink) in Mathematica (Using version 10, not sure when it was actually added) and wrote a barebones HTTP responder ...
5
votes
1answer
148 views

Largest matrix size supported by Mathematica 10

I have need to store large square matrices in memory, some times sparse, some times not. I have used up to $2^{15}$ by $2^{15}$ as my upper bound so far, and Mathematica has handled it even if it took ...
0
votes
0answers
36 views

Sum of derivatives [on hold]

I'm trying to write the expression: $$\sum_{i=1}^3 g_{ii} \partial_i \partial_i f,$$ where $f$ is a function of variables $\{x_1, x_2, x_3\}$ and $g$ is a 3x3 matrix. My expression is: ...
15
votes
4answers
3k views

Getting the interpolation function from a list plot

I have conducted a chemistry experiment and obtained a list of concentrations of a reactant against time. I plot a graph of this using Mathematica's ListPlot ...
0
votes
0answers
45 views

Applying the square root of operator on polynomial functions

I am trying to apply an "operation" on polynomial functions: apply the operator $(\frac{\partial f}{\partial x}-y\frac{\partial f}{\partial z})^2+(\frac{\partial f}{\partial y}+x\frac{\partial ...
41
votes
10answers
4k views

Having used Mathematica as a “gateway” language, where to from here?

I have been using Mathematica for about a year. It is the first language that I have attempted to learn. I'm still very much a newbie, but there are moments I feel more like I am waving than drowning. ...
1
vote
1answer
102 views

Why does Mathematica add Hold to the result of my user defined symbol?

In the code below I have defined a symbol that multiplies two block-matrices (I can't use the builtin Dot since Dot assumes that the matrix coefficients commute): ...
2
votes
1answer
45 views

How to access directly the “CUDA Memory” address from another parallel kernel?

I work with CUDALink and have some small successes. I use direct calculation on GPU without using CPU (only for sanding commands for CUDA function). Until now I have stored on the hard drive with ...
0
votes
0answers
27 views

What kind of objects in NETLink for PicoScope interfacing?

I have two issues in my mathematica code for control PicoScope using NETLink. PicoScope series 3206 remote controll was in one paper already shown ...
4
votes
1answer
89 views

Definitions are not distributed to parallel kernels

I have a small package with utilities, which looks like that: ...
0
votes
1answer
446 views

Solve non linear system of equations

I am trying to solve a system of two equations with two unknowns. In these equations I have, a part from constants: Unknown nr 1, $$D_{\perp}$$ Unknown nr 2, $$\omega_C$$ Known function of r: ...
6
votes
1answer
108 views

How to track Part of Symbol or How to symbolize Parts of Symbol without copying data

Let's create simple function: SetAttributes[h, HoldFirst]; h[data_] := Dynamic[Grid[data], TrackedSymbols :> {data}] test = RandomReal[1, {2, 2}]; h[test] ...
14
votes
2answers
1k views

Some tutorials on formatting notebook for exporting to pdf

I love the way that Mathematica allows me to type in of formulas. It is really easy to type complicated expressions with shortcuts on the keyboard. It would be great if I could use Mathematica ...
1
vote
1answer
65 views

How to use a list of rules as a data set

I have a file of models that I have saved that I want to be able to call in another program to be solved with NDSolve. Can I use ...
0
votes
0answers
23 views

Getting a remote kernel from a machine not directly reachable

I have a machine capable of running Mathematica on 24 cores which I would like to take advantage of :) The only problem is that this is a remote machine to which I cannot connect directly, I have to ...
-1
votes
0answers
44 views

What is a Horn Clause? [on hold]

I am not an expert in Mathematics :) thus if someone can let me know What is a Horn Clause in layman's terms? I know it is used in First order Logic but I am unable to understand what is it and how to ...
3
votes
0answers
74 views

Mathematica GUIKit

Does anyone of you know if the GUIKit package is still under some development by Wolfram Research or is the current version 1.1.0 the last one. Does it make sense to make GUIs using this package in ...
1
vote
1answer
46 views

Defining a matrix with the symmetry Transpose[A(q)]=A(-q)

I am trying to construct a symbolic matrix with the following property- $$ \left(D_{3\times3}(q)\right)^T = D_{3\times3}(-q) $$ Note that for $q\in \mathbb{R}$, $D(q)$ would be hermitian. So far i ...
4
votes
1answer
46 views

TensorReduce not simplifying transpose for symmetric matrix?

I know Mathematica is not very good with symbolic manipulation of matrix expressions, but I was surprised to find that it can't reduce the following expression: ...
7
votes
0answers
129 views

$3\times 3 = 6 + \bar{3}$ in Mathematica?

Can Mathematica handle this type of algebra, which is used very frequently in e.g. particle/nuclear physics? That is, I want to decompose a product of representations (in $SU(N)$ say) into irreducible ...
0
votes
0answers
80 views

How to render a 3d image of the galaxy? [on hold]

I recently came across the Uniview software package, there has even been a TED talk about it. Here is another example of some interactive views of star maps. In Mathematica 10 AstronomicalData has ...
-1
votes
1answer
64 views

Append plot to existing plot?

I have generated a plot from t=0->1, and I wish to append another plot from t=1->2. How can I do this? Thanks in advance.
2
votes
0answers
47 views

NDSolve is running an extremely long time: how can I save the existing data?

I am trying to solve a PDE by the following code. It takes 1 hour or so to reach t=25.72 but about 20 hours to reach t=25.72404031638060174049337306126853310997. Actually, the time step is extremely ...
0
votes
1answer
59 views

ParallelTable and global variables

I want to calculate the convolution of two function. In order to generate variables automatically, I use such an expressions: ...
3
votes
2answers
275 views

How do I show only the intrinsic color of 3D polygons?

System: Mathematica 9, Windows 7. I want to assign a polygon a color in such a way that it is rendered in that color irrespective of any ambient light sources. In other words I want Yellow to be ...
8
votes
2answers
695 views

OpenSCAD like functionality with Mathematica?

I keep seeing reference to use of Mathematica as a CAD tool (for instance: http://www.makerbot.com/support/guides/design/). I'd like to use it as such if feasible, but I'm having trouble locating ...
1
vote
1answer
53 views

Finding the true expectation

I have the density function and I want to determine its expected value ...
1
vote
0answers
84 views

Creating Scheduler

I am trying to build a scheduler program like pizza delivery. Each driver will choose their time and general working schedule will be updated similarly. Problem is number of workers change. How can ...
1
vote
0answers
60 views

I need some GPU benchmark for Mathematica

I am considering to buy a GPU. I need to know two things: Is it possible to solve a system of differential equations using GPU and Mathematica's functions? I need to know how much faster would be ...
1
vote
0answers
45 views

Updating a GUI with ComboBox using GUIKit

Dear Mathematica users, does anyone know how I can update my existing Gui window (made with GUIKit) by choosing different values of a ComboBox so that different and multiple TextFields etc appear ...
0
votes
2answers
145 views

Exctrating data information from a file.txt

I really did previous long search in the site and I couldn't find any answer that might help me. So I am asking it. I have the following data set, ...
0
votes
0answers
20 views

Maintain a function quality of an expression [on hold]

I have written a simple code in Mathematica to put a matrix into a vector. The matrix was a function of a variable n, and I want the new vector to also have this quality as a function of n. ...
1
vote
1answer
46 views

SemanticImport unable to properly read an Excel file with accented letters

Apparently SemanticImport fails to properly import Excel files when accented letters are present in the first (header) row. I'm using Excel 2013 on Windows 8.1 x64 ...
5
votes
1answer
135 views

FEM - how should I impose periodic boundary conditions in pure space problems?

I have searched other threads, but I was not successful in finding an answer I could understand. Right to the point: how do I impose correctly periodic behavior on the edges of the rectangular ...
18
votes
2answers
293 views

Maximize[Cos[x - 1], x] is not evaluated

No explanation needed: Maximize[Cos[x + 1], x] Maximize[Cos[x - 1], x] producing ...
1
vote
1answer
138 views

Understanding SameQ

I am new to Mathematica. So I have read the documentation for comparing expressions in Mathematica and I still don't get the SameQ (===) function. Let me give you a short example: ...
0
votes
0answers
38 views

Brevity of denoting Conjugate[]

How do I make Conjugate[] expressions have a bar above them instead of Conjugate[ before them, in order to shorted up expressions? I'm looking at something like this screenshot for example:
0
votes
0answers
31 views

How to join datasets? [on hold]

I have 3 datasets as a lsit: {dataset1,dataset2,dataset3} I want to convert them into a single dataset. The following does not work Join[{dataset1,dataset2,dataset3}] However, this works ...
0
votes
0answers
40 views

Random generation of three-non-collinear and four-non-coplanar points in 3D space

Please, take a look to this code. How it can be improved so that the time execution becomes smaller? ...
0
votes
0answers
33 views

Bar legend to Contour Plot

I have a set of 4 contour plots and I show them with the simple Show. How do I present a legend that is the same for the whole set? i.e., the scale needs to truly represent the set and not the values ...
0
votes
2answers
32 views

Generating a Variable Number of Dynamic Variables

I know questions that get at this very issue have been posed in other ways here, but as a relative beginner, I've had trouble understanding the answers. For my application, I am developing a simple ...
1
vote
0answers
52 views

What's real analogue for FromDigits?

FromDigits only works for integer strings. What's its real-number analogue?
6
votes
1answer
269 views

Speeding up the non-negativity algorithm for multilinear function with interval probabilities?

The algorithm is a branch-and-bound algorithm that calculates the non-negativity of a multilinear function with interval probabilities. The lines 9-11 has an optimization that is explained on the ...
0
votes
1answer
50 views

How to use MemberQ for such Variables?

This is NOT the desired out come. I want this test to fail: ...
3
votes
2answers
89 views

Using VertexDelete to remove vertices by degree

I am trying to remove vertices that have degree less than 2, but I think I am missing something basic. I was hoping that I could use: ...
3
votes
1answer
48 views
5
votes
2answers
110 views

Discretizing regions with pointy boundaries

I'm trying to discretize a region with "pointy" boundaries to study dielectric breaking on electrodes with pointy surfaces. So far I've tried 3 types of boundaries, but the meshing functions stall ...
1
vote
0answers
39 views

Purpose of VertexWeight

I am trying to partition a graph into partitions of equal weight (on the vertex). I looked at the documentation, and found VertexWeight, which seems to attach a weight to a vertex. In the details, ...
1
vote
1answer
35 views

Variables within functions within DSolve

Hi I am just beginning to learn Mathematica and this is my first time I have been exposed to any type of coding. I am encountering a problem in a basic physics problem. For example we are always ...

15 30 50 per page