# All Questions

407 views

### Creating hexahedral finite elements in Mathematica

Is it possible to do FEM using hexahedral elements in Mathematica? If it possible, is there any help to do that?
29 views

### Error in extracting a column [duplicate]

I imported excel data to Mathematica using this command. kuruzD = Import[ "C:\\Users\\TMH\\Documents\\Problem Set 4\\kuruzData.xlsx"][[1]] //TableForm I want to ...
241 views

### Is it possible to create Evaluatable cell which will be automatically overwritten?

Am trying to generate an Evaluatable cell which itself is an output cell which will be overwritten when the original Input cell ...
266 views

### How to find intersection of multiple lists excluding empty ones?

I have lists like list1={1, 1, 2, 3}; list2={3, 1, 4}; list3={}; I want to find the intersection of all list. I tried the following way, but it's not working. ...
499 views

### Axis labels are clipped (in BarChart)

I have created a bar chart with the below code. My $x$ axis labels have been cut in half for some reason. My $x$ axis heading is also missing. I tried using ...
408 views

### Creating plot markers with centered text

I want to create a series of plot markers which are circles, squares etc. with 2-3 letter codes centered within the marker. My current attempt looks like this: ...
120 views

### Getting poles of a Gamma functions [duplicate]

Why do the following 2 sequences give different answers? n = 1.5 Series[Gamma[0.5 - n - x], {x, 0, 2}] Series[Gamma[-1 - x], {x, 0, 2}] (..clearly the output from the second expression is ...
241 views

### Storing data in the Notebook in readable form

The common problem in my theretical work is a need to import some experimental data to work with. This means that my notebook depends on some external files which makes it difficult to share it with ...
176 views

### Weighted Kirchhoff Matrix?

I have a weighted graph and I want its graph Laplacian matrix (what Mathematica calls the Kirchhoff matrix in the unweighted case). Is there an easy way to get this? For example, the command: ...
589 views

### Make good looking histograms from frequency data

I allways do my calculations in Mathematica and I make my histograms using ROOT language. However I am wondering is it possible to make good looking histogram inside Mathematica? A sample of what I ...
478 views

### Area of the largest rectangle bounded by $y=x^2$ and the x-axis within the unit interval

I am trying to find the area of the largest rectangle (whose sides are parallel to the coordinate axes) contained in the region bounded by the graphs of $y = 0, y = x^2,$ and $x = 1$ using ...
56 views

### Is SynchronousUpdating->False supposed to make this simple Dynamic example work?

x = 0; Dynamic[{x, Button["+1", Pause[6]; x++]}, SynchronousUpdating -> False] The documentation states that Dynamic and Manipulate will abort synchronous ...
178 views

### Strange result from evaluating a Limit expression

When I evaluate the limit of (1-Cos[x]) Sin[1/x] at x = 0 in Mathematica 9, I obtained ...
119 views

Assume that; ...
118 views

### Constrain plot points to below a certain line

I have a set of curves that take on large values when approaching 1. I'm trying to create a straight line with certain slope and then truncate the plot for any curve that goes above that line for any ...
145 views

Assume that ...
443 views

### WhenEvent in NDSolve

How come this doesn't work as I intended? ...
168 views

### FindMaximum inconsistency

The code below seems to work for n<11. But for n=11, and above, it outputs newa then just outputs "beep" sound. WhyTheBeep says "The kernel Local has quit ...
298 views

### How to guess initial complex value for FindRoot

I have to solve a transcendental equation for a parameter, say $\beta$. Now, the $\beta$ has a range from $ik$ to $k$ where $i$ is the usual imaginary root $\sqrt{-1}$ and $k$ is a real number. ...
554 views

### Specify a variable as an integer

I have a formula that always evaluates to a certain number for any variable X under one condition that X is an integer and ...
205 views

### Find white regions in image

At the white regions of this image I want to add a few random arrows. I would like to realize two different of adding the random arrows: The arrows may not leave the white region The arrows have to ...
649 views

### How do you configure Mathematica 9 to automatically evaluate all notebooks?

I have a Mathematica 6 course that I am using in Mathematica 9; there is no updated version. Every time I open a notebook I have to go to the Evaluation menu and click on "Evaluate Notebook". Is there ...
435 views

### Why does Integrate declare a convergent integral divergent?

When I try this command Integrate[1/Sqrt[(s^2 - u)^2 - 1], {s, m, Infinity}, Assumptions -> u > 2 && m > 10] Mathematica declares that the ...
469 views

### Export to CSV is very slow - can performance be improved?

I have to provide data exports from Mathematica to CSV format and it is very slow compared to other formats as can be seen in the following table: JSON, 15 sec, 8.4 MB TXT, 23 sec, 5.6 MB XLSX, ...
355 views

### Non commutative multiply- expand expression

I began to use Mathematica a few days. My problem is: How to expand expression like $(a+b)*(a+b)$, where this multiplication is non commutative? Mathematica can do this?
202 views

This is a follow-up question from linking the libraries for CUDALlink in Ubuntu 12.10. The tests that I execute (CUDAQ[], ...
60 views

### Finding Maximum Root [duplicate]

How can I find the greatest root for a polynomial if the polynomial degree is very large. One way is using NSolve. This command can find all roots in numeric. Then, ...
445 views

### How to collect terms with positive powers in polynomial

I am trying to collect all terms with non-negative powers of $x$ in polynomials like $\frac{1}{x^2}\left(a x^2+x^{\pi }+x+z\right)^2$ First expand the polynomial ...
98 views

### strange output from ToExpression

I want to set constraints to my parameters, e.g., "m", but Mma gives nonsensical output. How could I avoid this phenomenon by using another but "equivalent expression"? Or, is this just in my computer ...
205 views

### What ways are there to convert an Integer to a list of digits?

How can I convert an Integer to list of numbers? For example: 781049 ==> {7, 8, 1, 0, 4, 9} What are the possible ways of ...
160 views

### Calculating the rank of a huge sparse array

By virtue of the suggestion in my previous question, I constructed the sparse matrix whose size is $518400 \times 86400$, mostly filled with $0$ and $\pm 1$. Now I want to calculate its rank. Since ...
364 views

637 views

### Mathematica cannot find CUDA driver

I have successfully installed CUDA 5.0 on my Ubuntu 12.10, with driver 304.54, toolkit and samples. Running deviceQuery gives me a successful output: ...
223 views

### double integration

I want to evaluate a double integral, but the limits of one integral is a function of the second. Like this ...
196 views

### Speeding up multilinear PRA branch-and-bound algorithm with worst-case exponential time scenario with respect to basic events

The algorithm is a branch-and-bound algorithm that calculates dominances for PRA, probalistic risk assessment. The task was to find faster ways to do it in numerical software such as Matlab but we ...
249 views

### Efficient code for building a big list

I would like replace the following code ...
852 views

### Defining a function that completes the square given a quadratic polynomial expression

How can I write a function that would complete the square in a quadratic polynomial expression such that, for example, CompleteTheSquare[5 x^2 + 27 x - 5, x] ...
240 views

### Output format in MatrixForm

I have a correlation matrix, which I want to display in the following format: 2 decimal places (e.g., -0.56) number signs "+" and "-" (e.g., +0.76 or -0.34) I've tried many different things, but I ...
2k views

### Composing an image with a plot

I'm trying to illustrate the solutions to a textbook problem dealing with quadratic functions. This will involve plotting a quadratic and overlaying the plot and the image. Here is the textbook ...
207 views

### Generating a list of symbolic coefficients [duplicate]

I am trying to do something which I assume should be very simple: I want to generate a list with symbolic coefficients that looks like this: ...
149 views

### Recursion evaluate Table power exceeded limit

I wrote 2 simple recursive functions for calculating the power of a table. pol3[Tb_List, n_Integer?Positive] := If[n == 1, Tb, Tb.pol3[Tb, n - 1]] and ...
513 views

### Putting NDSolve into ParametricPlot

I am having issues using Manipulate to plot the (numeric) solution to an ODE for different parameter values. I have a code that has several stages, which seem to ...