# All Questions

9 views

### How to use shell commands inside mathematica

I want to know how to use simple shell commands inside mathematica. For example: I want to set the current directory as the NotebookDirectory using shell command PWD. Something like ...
15 views

### Solving 4 coupled differential equation and minimizing the solution

I have a system of 4 coupled differential equations. ...
20 views

### Plot 4d data with slider from a csv

How can I plot 4d data from a csv, using a slider for the 4th variable? The data is in a csv like this: f x y z 1.2 2.2 3.0 -3.2 2.1 -1.0 3.1 2.3 ... How can I ...
15 views

### How Defer[1+Evaluate[1+1] work?

I want to generate some expressions. The expression is not evaluated expect some parts will evaluate first. A simple example is Defer[1+1+1] and in this expression ...
82 views

### How to overload the operator “*” as KroneckerProduct [on hold]

Can I use the expression below a * b * c * d for short to instead KroneckerProduct[a,b,c,d] automatically when a,b,c,d are ...
23 views

This code: ...
17 views

### Defining functional elements of a matrix with a list

Say I have a function f[i,j] and I have specific values for i and j, (a,b,c...) I'd like to create a matrix or table: f[a,a] f[a,b] f[a,c] f[b,a] f[b,b] f[b,c] f[c,a] f[c,b] f[c,c] etc... I'd ...
35 views

### How do I create a recursive tree plot for the Fibonacci sequence?

I would like to create a plot that shows the recursive tree for the nth number of the fibonacci sequence, as the one below. http://faculty.ycp.edu/~dhovemey/fall2005/cs102/lecture/fib5.png Ideally, ...
55 views

### Algorithm for determining factorability

Consider the following polynomial : $P[x,y]:=a_{11}+a_{12}y+a_{13}y^2+a_{21}x+a_{22}x y+a_{23}x y^2+a_{31}x^2+a_{32}x^2 y+a_{33}x^2 y^2$ where the $a_{ij}$ are either $1$ or $-1$. Thus there are ...
642 views

### How to replace a space by a comma

in this expression = "{1 2 3 4 5 6 7 8}", I want to replace each space by a comma , to get ...
25 views

### Protected Variables in Parallel Loop

I am trying to run the code below. ...
186 views

### Getting AbsoluteTiming to display in hours, minutes, and seconds

I'm doing some extended length calculations and was wondering how I could get AbsoluteTiming to display in hours, minutes, and seconds. I googled and found nothing, ...
101 views

### How to force a replacement in an order that I want?

This is a follow-up to this question. I have a big sum, with lots of terms of the form ...
59 views

### insert comma between numbers [duplicate]

I have the following numbers rows and I want to insert a comma between the numbers? 6 7 9 51 64 68 79 102 116 128 148 155 184 202 273 283 292 1 7 8 10 52 65 69 80 103 117 129 149 ...
70 views

100 views

### Find coordinate {x, y, z} where two functions are minimal

I am trying to find a point in a ListPointPlot where the total RegionDistance is minimal AND the total differences of the ...
50 views

### Maximum value of a function using loops

I have a function ab+bc+a/c, where a,b and c ranges from 1 to 5.I have to get an output of maximum value of this function and the values of a,b and c which give that maximum value. Is it possible to ...
109 views

### How to plot a lattice (2D or 3D) given a basis

I want a graphical picture of a lattice with basis such as $\{(1,1), (\sqrt{2}, -\sqrt{2})\}$. Does Mathematica already have a pre-made function that finds all linear combinations over $\mathbb{Z}$ ...
36 views

### FourierTransform a function doesn't give result when variable is 0

I am trying to get a Fourier Transform of a function. However it doesn' work when the variable is 0. I used Mathematica 8.0 on a Windows Server 2008 R2 system. The code is as follows: Defining ...
My question regards construction of a PDE solver for several fields, with different type of boundary conditions for several fields. Say I have the following set of equations:  ...