# All Questions

178 views

### Cannot launch MathLink from C

I am trying to launch a MathLink from a 64bit C dll that I am building, using the following code: ...
206 views

### Problems with Manipulate (indicated by blinking output cell)

The following code produces the error message when exported to CDF in the title of this question. Although I have seen similar issues on SE, the problem is manifest by the "blinking" of the plot ...
82 views

...
440 views

### Is it possible to simplify a trigonometric expression only in terms of $\cos (u)$ OR $\sin (u)$?

I want to expand the following expression into powers of $\cos(u)$ only: a1 + a2 Cos[2 u] + a3 Cos[4 u] + a4 Cos[6 u] The answer that I want (and which I found ...
303 views

### find the real root

I have the following equation: $$(y-1)^{b1} - C~~ y~~ \exp(a x)=0$$ where $a, b$ are real constants, $C$ may be a complex number. I need to find the real solution of the ...
92 views

### Can I change Legend text in a stylesheet?

I prefer a sans serif font in graphics, which I do by creating a style for "Graphics" in a stylesheet. However, this does not affect the style used by legend labels: ...
95 views

### Replace a sum of squared variables by a new variable squared

Is there any way to tell Mathematica to replace $\kappa^2 + k_z^2 \rightarrow k^2$ in an expression? I want to make a result more readable, e.g. something like this: \frac{2 k_z^3 \sqrt{k_z^2 + ...
255 views

### Permuting elements within a list

I have s = {2, 3, 5, 7, 1, 4, 6} (* always with diffente elements in {1,2....7}*) l = Length[s] n = 3 and n tells us that we ...
44 views

### Indexed variable with alternatives

I have a["tree"] := "oak" a["flower"] := "rose" a["dog" | "cat"] := "animals" I want that the last definition of a behaves ...
116 views

### Formatting ANOVA table and/or ParameterTable without using Grid?

Does anyone know if there is an option or function that can automatically format the output of ANOVATable and ParameterTable, ...
211 views

### Write numbers to a file

I want create file with some text (and numbers). This is my code. ...
88 views

### GraphicsGrid command

When we merge some colorful plots to a single image, with the command GraphicsGrid, the quality of output image will be lost, slightly. That is, for instance all ...
3k views

### Exporting pictures in their correct size when using Grid [duplicate]

I have a large number of pictures, and I need to place each three of them in a grid with a certain layout. For example, if I have the following pictures: ...
86 views

### Trouble with using a log10 function in NonlinearModelFit

I was wondering why won't mathematica give a result where the function is also Log10, instead it gives the ordinary Log. Is it ...
275 views

### How to output a bat file and execute it?

I tried to write a bat file which helped me rename files. Command to do this in that file is "ren file1 file2" which is equivalent to RenameFile[file1,file2]. ...
713 views

### How to calculate an improper integral

How can I find the range of the parameter a such that the improper integral Integrate[(x^(a - 1))/(1 + x), {x, 0, ∞}] ...
76 views

### single root of a cubic function

As it can be shown that the function f(x)=3x^3-9x+1 has a single root in the interval abierto (0,1). Try to solve using Newton Raphson method, but that is more than a demonstration calculation
121 views

### how to take some parts of String with certain pattern

I have the large number of files in which the file's names follow certain pattern. for example here are names of two files ...
96 views

### Find names similar to a given name in a large data set

I'm trying to find a 'similar' name to every item in a list ...
82 views

### Speeding Up NIntegrate and ?NumericQ

I have attached below a piece of code that has been running successfully but takes extremely long for mathematica to compute. I believe it is the last "rms" calculation and the fact that I am using ...
50 views

### Tick marks on curves [duplicate]

I would like to put tick marks on a curve. In this trivial example I have managed to put some ticks. ...
66 views

### Error message from NDSolve using WhenEvent

I am working with the following NDSolve expression: ...
735 views

### Hatched Filling for ListPlot

I am plotting to data curves using ListLinePlot. I like the look of Filling, but this is going to be printed, so I want something both black and white friendly, but giving more definition and ...
413 views

### Solarized stylesheet and other goodies. Feedback welcome!

I was inspired by this post so I've made a Solarized stylesheet after mucking around with the text options and asking stupid questions on here. I know you can change the syntax highlighting by running ...
447 views

### Rewriting one expression using a variable representing another expression [duplicate]

I have two expressions: w1 = (a+b)/c^2; w2 = (a^3 + 3 a^2 b + 3 a b^2 + b^3)/c^6; How can I ask Mathematica to try to find an alternative expression for ...
35 views

595 views

### Skip other If conditions

I'm trying to write a code to "random" move in a matrix but it can't go to a certain position if it has a certain value (in this case I'm using the number 2). How do I make it to skip all other If ...
186 views

### Conditionally formatting elements in a list

I have a list {{a1, a2, a3},{b1, b2, b3}, ...} and I want to replace the numbers less than 10 by 0x (just insert a 0 before the ...
1k views

### How to plot data with error bars on a log scale in Mathematica 9?

I have data in the form d={{x1,y1,dy1},{x2,y2,dy2},..{xn,yn,dyn}}; so the error bars are different for each coordinate pair. I want to plot on a logarithmic ...
63 views

### Is it possible to export an Animate and Plot in a grid together?

I have a code that produces an Animate graphic and two Plots in a Grid. I am able to export the Animate graphic using .avi, but do not know how or if its possible to export these together in one file. ...
49 views

### Resolving Error: Mathematica evaluation order on Lists

I have a table that is 27 x 27, each entry corresponds to an element from the periodic table. I use the replacement rules in element list to allow me to convert a list of elements into a list of ...
I am trying to Integrate the following Integral : $\int_1^{\infty } \dfrac{\left(x^2-1\right)^{13/2} e^{-ax} }{x^{10}} \, dx \,\, \,\,\,\,\,\,\,\,\,\,\,\,(a=\textrm{real>0})$ Mathematica didn't ...