# All Questions

715 views

### How to do binary calculation？

For example, $a=0.10101$ in binary representation. Then how to calculate $a^2$ directly in mathematica? Is there any function turning binary into decimal? I only found its inverse...
163 views

### Adding z-value to mesh lines in Plot3D as is done in ContourPlot

Consider: f[x_, y_] = (x^3 + y^3)/(x^2 + y^2); Plot3D[f[x, y], {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {#3 &}] Which produces this image: Is there a ...
72 views

### How to solve an equation given certain parameters?

I am new to Mathematica so please bear with me. I have an equation that has around 7 parameters and one unknown. I was able to use FindRoot to solve it; however, I ...
69 views

### Hold[Dataset[__]] not holding

With Hold[Dataset[Random[]]] instead of an expected Hold[Dataset[Random[]]] Can ...
230 views

### Plotting results from Findroot

I know this has been asked, but I cannot seem to understand the solutions. What I need to know, because I have my first domiciliary test this Monday, is how to plot the output from ...
107 views

### Problem with NDSolve and Sign

If c1 cnd c2 are zero, the code responds very well; but if one of c1 or ...
377 views

### how to concatenate a list of a list of strings

I have two lists of lists, La and Lb that I want to concatenate so that every element of a list n in La is concatenated with the corresponding element of list n in Lb. For example: La = {{P, O, O, O}...
88 views

### Not seeing line defined in an Epilog option

In the following code, the line defined in Epilog option of my 2nd parametric plot doesn't show up in the content pane of my ...
95 views

238 views

### Mathematica equivalent to gnuplot's fsteps option?

In a ListLinePlot I can set InterpolationOrder -> 0 to get the equivalent of gnuplot's ...
65 views

### BinaryWrite negative numbers [closed]

testList = {1, 2, 3, 4}; file = "test1"; BinaryWrite[file, testList]; BinaryReadList[file] Close[file]; Gives {1, 2, 3, 4} ...
118 views

### How to sort the ranges of a Piecewise expression?

I have the following PieceWise expression ...
44 views

### What workarounds are there to TagSetDelayed::tagpos?

My program creates an object based on an Association, with a custom head: g = Gate[<| "key1" -> val1 |>] I have ...
328 views

### Evaluating a surface integral

I'm trying to compute the integral $$\int_S x^2+z^2\,{\rm d}S,$$where $S$ is the surface $$S\colon~ \frac{x^2}{2} + \frac{y^2}{3} + \frac{z^2}{2} = 1, \quad y \geq 0.$$ One possible parametrization ...
43 views

### Basic Question: Split Nested list into respective elements [closed]

New to Mathematica, just have a very basic question to ask. I have a table of results like so: ...
115 views

### How can I see more of the Java stack trace when an exception occurs in JLink?

If I call into Java code via JLink, and there is an uncaught exception, Mathematica produces a Java::excptn message, and prints ...
1k views

### What is included in Wolfram Extras?

I recently installed a new version of Mathematica and it includes an optional companion package entitled "Wolfram Extras". Is there any official documentation (release notes?) that details what ...
165 views

### How to draw curvy arrow at the edge of a cylinder

I would like to draw a figure similar to the attached here. What I ended up with is the following figure. I use the code: ...
105 views

What is the best way to comment a long Module? For linear flowing calculations that need not be organised in modules, I usually mix text and math. But how can I do that inside a module, or block, or ...
403 views

### Fitting and plotting Weibull distribution

How can I find the best fitted 2-parameter Weibull's distribution (PDF) to describe my data? How can i plot my data and estimated distribution all in one graph? How can I show/compare results of ...
439 views

### Getting rid of spikes in the PDE solution

Bug introduced in 10.0 and fixed in 10.3 Note: In 10.0, Rationalize[fd, 0] was needed or mesh generation would fail. Preamble: I am solving a PDE in a domain ...
87 views

### Find all degenerate eigenvalues of a cubic equation

I have an equation that is cubic in w. The three solutions correspond to bands in a bandstructure, and are a function of wavevector ...
338 views

### How to Include multiple plots in a single Manipulate [closed]

For example if I had one function Sin[x]/x=c and a second one Cos[x]/x=c than Manipulate for ...
169 views

### Given a list of triangle vertices, how to find the neighbors for each vertex?

A triangle is represented by {a,b,c}, indicting that its vertex IDs are a, b, and ...
152 views

### How to export strings and figures as PDF in A4 format

I have a column consisting of strings and pictures, like this: ...
270 views

### How to add AccuracyGoal and PrecisionGoal options in a numerical function?

There are many built-in functions that contain AccuracyGoal, PrecisionGoal and ...
1k views

### Using Mathematica to solve a probability problem

The problem is from Principles of Statistics by M.G. Bulmer: In a certain survey of the work of chemical research workers, it was found, on the basis of extensive data, that on average each man ...
264 views

### An informative contour plot

I'm trying to visualise the graph of a function $f(x,y)$ of two real variables using ContourPlot. Here are the things I'm after: The points where $f(x,y)=0$ ...
271 views

### Averaging over a circle from FFT to plot the amplitude vs wavelength

I am trying to calculate the amplitude of FFT vs wavelength for some experiments. I had put a question here previously on how to compute the FFT of an image. Thanks to everyone who provided the ...
126 views

### Union on Associations (Kernel Kill)

Bug introduced in 10.1 and fixed in 10.2.0 Perhaps Union on Associations is not being encouraged since ...
68 views

### Fourier cosine series of displacement

I'm trying to calculate a Fourier Cosine Series of displacement for general 4-bar mechanism. My code not working. I don't understand why. I need the result as this form ...
372 views

### Round vs. Floor vs. Ceiling for non-integers non-orders-of-magnitude

I understand that Round give the nearest even integer for cases where the number is between two integers, i.e. Round[2.5] = 2 ...
169 views

### Select using MemberQ

I want to make a selection on this list ...
371 views

### Why does leaving and re-entering a context lose values defined in that context?

I'm getting unexpected behavior when beginning a new context, leaving it, and then re-entering it. Specifically, when re-entering the context, symbols that had been previously defined in that context ...
I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...