0
votes
0answers
47 views

Numerically Solving Compatible Systems of Overdetermined PDE

Is there an easy way to get Mathematica to numerically solve a compatible system of overdetermined PDE, and plot the solutions? For example, consider the "toy" example $\dfrac{\partial u}{\partial ...
1
vote
0answers
65 views

Imaginary number appears in Integrate [on hold]

I had a problem in the following code because when I use Integrate, there will always be imaginary number in the result. I put my code here. The satisfactory result should look like eq 9.138, which I ...
2
votes
1answer
51 views

Export CSV from tables

I am reading my csv which looks like: float,float,float,integer,boolean I read it with: ...
0
votes
2answers
88 views

setting real parameters in Hamiltonian matrix

The following Matrix represents my Hamiltonian. m = {{ B/2 - d - j/2 + a, (Sqrt[2]*j)/2, M}, {(Sqrt[2]*j)/2, B/2 + a, 0}, {M, 0, (-3*B)/2 - d + j/2 + a} How can ...
0
votes
2answers
48 views

Evaluating an expression assuming a value for a variable only in the local context

Imagine we wish to evaluate some expression like NIntegrate[x^2*q,{x,0,100}] assuming some value for q like ...
1
vote
1answer
58 views

Solve never terminates with simultaneous equation set

I have the following set of simultaneous equations that I want to solve symbolically. The two unknowns are $a$ and $d$. $a=\frac{c*(d/10)}{1 + (f/130) + (d/50)} - \frac{a}{1 + (a/100) + (d/100) + ...
4
votes
4answers
274 views
6
votes
2answers
108 views

Rotational Averaging of Image Periodograms (FFTS)

I'm writing a code to do rotational averages of image FFT's. I have a working version but it is pretty slow. Wondering if anyone has any thoughts on a way to do this more efficiently. Data looks ...
0
votes
2answers
72 views

Constraining function found by NDSolve to stay positive

I am trying to constrain my variables in NDSolve so that they stay positive for the integration interval. Is is possible to do that? Using Assumptions as in ...
3
votes
0answers
78 views

Solving huge equations

I have this expression: $d=-\frac{\sqrt{\frac{780 (f+130) \left(5 d^2 (13 c+f+130)-5 d (c (f+1300)-325 (f+160))+125 \left(2 (2 c+725) f+5 f^2+104000\right)+13 d^3\right) \left(5 d^2 (52 c+17 ...
0
votes
0answers
47 views

A list of cities in a time zone meeting a specified criterion

Is there a way to get Mathematica V9 or Wolfram|Alpha, given a city as input (e.g., "Urbana Champaign, IL"), to return a list of cities that fall in a time zone ...
0
votes
0answers
46 views

How to parallelize this code

Here I obtained one code which should tests some zeros of the poly for various g, but sometimes I have to many cycles because of step and I need to parallelize the running on all cores. Classical ...
0
votes
0answers
23 views

Discrete Fourier Transform and data manipulate

I solve a system od ODE and i save the discrete solution (i.e.: x,y,vx,vy, or a subset of it) in a file. Then i try to call the DFT on this file but the problem is that i must have also the time in ...
31
votes
6answers
4k views

Finding real roots of negative numbers (for example, $\sqrt[3]{-8}$)

Say I want to quickly calculate $\sqrt[3]{-8}$, to which the most obvious solution is $-2$. When I input $\sqrt[3]{-8}$ or Power[-8, 3^-1], Mathematica gives the ...
6
votes
0answers
109 views

Automatic replacing of [ with []

I tried to modify the KeyEventTranslations.tr file in order to always place a closed bracket instead of an open bracket once I press ...
0
votes
1answer
38 views

Z-Transforms and Floor Functions

When I take the $Z$-Transform of the Floor function: ZTransform[ Floor[x], x, z] I get ...
22
votes
9answers
3k views

Programming paradigm change

I'm new to Mathematica, I've been learning by myself, and, being a Java developer for some time, it makes it hard to adapt. I've tried to solve a Reddit challenge, and I came up with this solution: ...
0
votes
0answers
39 views

3 Lines for the 3D Axes through the origin instead of a Box [on hold]

I'm trying to plot 3D for http://math.stackexchange.com/q/739328/53259: ...
0
votes
0answers
23 views

Use remote kernel on debian from win8

I spend almost two week to figure out how mma could use a remote kernel. The following is my results: The basic environment is: mma9.0.1 on win8 as my host (local machine); mma9.0.1 on Deiban 7 as a ...
0
votes
0answers
43 views

Derivative of generating function (Example from documentation)

In the documentation for GeneratingFunction, the following example is given under Examples -> Properties & Relations -> Derivative: ...
1
vote
1answer
52 views

RegionPlot of a Double integration [on hold]

Hey guys I have a problem where I want to sketch the region of integration: Integrate[x Cos[y^2], {x, 0, 3}, {y, x^2, 9}] I know I have to use ...
0
votes
2answers
92 views

How to partition three years of data into daily samples

I'm trying to find mean of temperature data list. The temperature data list has 3 hours steps which means I have 365*8=2920 temperature measurements per year. My data are temperatures of 13 years. ...
4
votes
1answer
205 views

C compilation not working with Visual Studio 2013

I'm running Mathematica 9 on a 64 bit Windows 8.1 laptop. I'm having no luck getting C compilation to work. ...
0
votes
0answers
32 views

Gradient method [closed]

conditional gradient method to solve the following problem:f(x1,x2)=x1^2-4x1+x2^2-2x2->min X={(x1,x2)belongs R^2:x1 belongs [0,1],x2 belongs [0,2]} please write a step by step solution, perhaps you ...
1
vote
2answers
64 views

Select record when third column matches certain criterion

I've a table with 3 columns. The table looks like this: ...
4
votes
2answers
200 views

Understanding Transpose

It is very likely that it is my lack of math skills that is showing up here. However, I think Transpose is such an important function that I need to master it. So I ...
-2
votes
1answer
48 views

How to calculate an expression to a specified number of significant digits [closed]

How can I calculate an expression with a specified number of significant digits? For example , how would I calculate $a(n)=1/n-5a(n-1)$ where $n=1,2,3,4,5,\ \ldots\ $ and $a(0)=0.1834562432$ to four ...
0
votes
0answers
90 views

How can I modify my code so the result of my final calculation is acceptable to Simplify? [closed]

Description: Recently,I have been doing my undergraduate paper that about The Dynamic of SCARA Robot.I write many small functions to caculate the last result. Q ...
8
votes
1answer
164 views

How to create internally optimized expression for computing with high WorkingPrecision?

I have large dataset and need to fit rather complicated function on it with different values of one of its parameters (this parameter must be fixed in every fit). I use the ...
0
votes
0answers
43 views

Solving an exponential inequality with parameters

Can I use Mathematica for solving the inequality given below? b^(x/2 - 3/2) - b^(ax) - 2c > 0 where b, a, c are the parameters. I want to find out for what ...
2
votes
2answers
122 views

How can I style a TabView?

I have been trying to style a TabView like in the examples on the Wolfram CDF site, where they have custom sizes and backgrounds with images or gradients, but I am ...
1
vote
0answers
23 views

(Counting problem) very interesting Modular N algebraic eqs - for combinatorics experts [migrated]

We have some attempt to numerically solve this math problem, which means that we like to count the number of independent solutions of this set of six of modular N algebraic equations: $$ (1) x_1 ...
135
votes
19answers
10k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
2
votes
1answer
74 views

How do I toggle between the program snippet form of a displayformula and the human readable form of the equation?

I have a DisplayFormulaNumbered cell in my Mathematica notebook. If I use the Cell | Convert To menu item to convert the cell to Standard or Traditional Form, the formula is now rendered as a program ...
7
votes
2answers
95 views

How can I recover a graph from a graphical output in a notebook after resetting the kernel?

I have an old Mathematica notebook with an output for a graph structure $G$ I would like to recover. However, the routine for building up the graph is stochastic, so I can't simply rerun the code. ...
3
votes
0answers
90 views

What can I do to improve the performance of my calculations?

I'm trying to express a simple probability problem in Mathematica, but am having trouble getting my calculations to execute at a reasonable speed. I have an object whose unknown location is modeled ...
0
votes
1answer
36 views

How can I fix my code so NIntegrate doesn't produce error message?

I get this error when trying to integrate a seemingly simple expression: ...
3
votes
0answers
63 views

Getting Arg[z] to go from $0$ to $2\pi$

I'm defining branch cut functions, and I'm using $arg(z)$ as a building block. So I just spent an hour at the whiteboard assuming that $arg(z)$ goes from $0$ to $2\pi$, and then I implement the code, ...
3
votes
1answer
145 views

Partitioning an image based on features

I have an image that has various characters hand drawn in it, like numbers and letters. I'm trying to partition each character into it's own image so I can run it through ...
2
votes
0answers
48 views

Can BreadthFirstScan be modified?

I would like to obtain a "slick" implementation of A*-search algorithm on Graph objects, using the built-in BreadthFirstScan (if that is possible at all). I noticed that BreadthFirstScan is static in ...
3
votes
1answer
59 views

Is it possible to get AltGr key to work in Math.exe?

For some reason when you run Math.exe form windows command line, Mathematica disables the AltGr key. This is a bit annoying since my keyboard locale has the keys [, ], {, }, @, $, \, | located under ...
2
votes
1answer
49 views

Dynamically Updating Function

I use Mathematica 8 and am working with DynamicModule. I'm trying to enter a function in an InputField then later apply it to two values entered in subsequent Input Fields. The function just does not ...
3
votes
1answer
36 views

In LineLegend, how do I force the legend entries to appear in a single column?

I want to create a single column LineLegend with at least 12 different entries. Suppose that I define lists colors and ...
1
vote
1answer
44 views

Operator operation

There are two basic operators r={x,y,z} and p=-I*h*{D[#,x] , D[#,y], D[#,z]} &. The angular momentum operator is defined as ...
3
votes
0answers
50 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
0
votes
1answer
94 views

I don't understand ListCorrelate! [closed]

I want to solve a PDE equation (like Schrodinger equation) using finite difference in Mathematica. I don't understand what this code does! ...
0
votes
1answer
41 views

Mathematica quits calculation automatically

I have this little program that is adopted from a Wolfram demonstrations project (link here: http://demonstrations.wolfram.com/PercolationOnASquareGrid/). I want to see what happen if I increase the ...
2
votes
1answer
43 views

Opening notebooks from Workbench on Mac OS X?

I recently switched from Windows 7 to Mac OS X 10.9.2 for Mathematica development, and have set up Mathematica 9.0.2 and Wolfram Workbench 2 (running under Eclipse Kepler). Most everything works ...
-1
votes
0answers
17 views

Conditional gradient method [closed]

Solve a constrained optimization problem f (x) -> min conditional gradient method on a set of simple structures such as box, sphere on programming language c++.Please
4
votes
2answers
93 views

Clicking to add/remove a Locator

I would like to add a Locator to a figure displayed by Manipulate when I click inside the figure, at the location where I click, ...

15 30 50 per page