# All Questions

24 views

### Transferring simple array of results through NETLink

Further to Todd Gayley's 2006 reply to the question .NET / hand over of variables, I am trying to fill an array of doubles with values via NET/Link. However, I am getting an exception. Can anyone ...
148 views

### Remove pieces of a text file

I have imported a text file as a Table with testpbkg = Import["unweighted_events.lhe", "Table"] The file looks like this. I want just to select the text ...
76 views

### Local modification of built-in command via UpValue

I have a computationally intense function f that returns a matrix. Sometimes only the diagonal is needed, which is faster to compute, thus there's a syntax for f to ...
64 views

### ConvexHullMesh fails with small numbers

When I try to get the ConvexHullMesh of a List of points that are "small scale", I get errors: ...
86 views

### Numerical Integration involving multiple singularities [closed]

I want to solve the following double integral numerically. This integral has singularities in two points. ...
121 views

### How to calculate the point spread function used in function ImageDeconvolve [closed]

Question Background How can estimate the PSF function to deblur an image of plate licence of a car It was marked as duplicate. How to enhance a fuzzy image I don't very agree the current ...
80 views

the data is ...
81 views

### How to plot the difference between two regions? [duplicate]

I'm trying to take the difference between two regions. In this case, one region is a cuboid, and the other is a cylinder. Here's what they look like drawn with Graphics3D: ...
98 views

### How to get rid of the error message when evaluating a highly oscillatory numerical integral?

I have a simple numerical integral with a highly oscillatory integrand: ...
67 views

### Accessing Plot's default formatting [duplicate]

I'd like to plot multiple sets of data, along with trend line fits for each. I can do this by plotting the fits, and then including the data in an Epilog. But I'd ...
311 views

### Apply multiple functions to parts of a nested list [duplicate]

data = {{1, a, x, "one"}, {2, b, y, "two"}, {3, c, z, "three"}} I want to apply a list of four functions {f, g, h, m} one ...
68 views

### Removing zeros from FrameTicks [duplicate]

I would like to divide values of FrameTicks by factor of 1000 to show KiloUnits instead of Units. How it is possible to do?
67 views

### Strange behavior of derivative when using Abs[] [duplicate]

This code where I try to visualize Newton's Method on the function $f(x)=\sqrt{|x|}$ works fine when I define $f(x)$ piecewise. Then why doesn't it work when I define ...
88 views

### Creating a grid with numbered spaces and other markings

I am writing a graph theory paper about forbidden induced subgraphs. My coauthors and I have a list of 167 graphs that we would like to include in a diagram in the paper. I have generated all of these ...
46 views

### How to apply a piecewise function to a list? [closed]

I have created this code: xn = {4, -4, 4, -4} f[x_] = Piecewise[{{Sqrt[x], x >= 0}, {Sqrt[-x], x < 0}}] f[xn] With this code I would expect as a result: ...
58 views

### How to increase the image resolution of a map?

I'd like to obtain higher-resolution geographic maps retrieved from Wolfram geo server, since the standard resolution seems poor. I tried to increase the "TileSize" parameter, like this: ...
156 views

### How can I assign many values each to a different variable? [duplicate]

How can I assign many values each to a different variable? For example, I want to set $a = f(1),\,b = f(2),\,c = f(3),\,\dots,\,z = f(26)$ (generally more variables than these). How can I do this ...
109 views

### How to align GeoGraphics “GeoImage” with GeoPositions?

I have latitude and longitude locations that I need density (or contour) plot to overlay on a map. For example: ...
45 views

### Adding a link to notebook 2 in a notebook 1 [closed]

How to add a link to open a notebook2 with any name in a notebook1 I tried with Hyperlink without success.
43 views

### Import expression involving cosine and sin [closed]

I have a list of elements that contains numbers like 2 (Cos[\[Pi]/9] + I Sin[\[Pi]/9]). However, when I export the list and call it later, I end up with elements of ...
32 views

### Integral function whose limits are solutions to separate equations

I'm trying to get the function Ne to work, which involves an integral whose limits are the solutions to two different equations. So far, the code runs smoothly, but when I try to plug values into CMB,...
67 views

### Simplification of Gamma functions

I am having some trouble simplifying some Gamma functions. I have a large expression in which some combinations of Gamma functions appear, that can be simplified, but applying ...
45 views

### Generating sound according to a mathematical function [closed]

I would like to get sound clips that essentially are frequencies varying according to certain recognizable math functions like sin, tan, floor, absolute value etc. Please help. Thanks
50 views

### Given a TemporalData object, can I determine whether it's a TimeSeries or an EventSeries?

If I have a function that accepts TemporalData objects, is there some mechanism whereby it can determine what kind of object it gets (...
42 views

### How can I import Real16 binary data? BinaryReadList doesn't work [on hold]

How can I import Real16 binary data? BinaryReadList doesn't work: ...
39 views

### Combination of Values: Automated generation [closed]

How can I get a list of combinations for two values (e.g. 0 and a) such as for N=3: {{a,a,a},{a,a,0},{a,0,a},{0,a,a},{a,0,0},{0,a,0},{0,0,a},{0,0,0}} ? I'd like ...
2k views

### How to avoid procedural loops in this example?

I want to iterate over a list, and return the index as long as I found the first element satisfying my condition. Written in a for loop: ...
65 views

### List of unequal random numbers [duplicate]

How can I generate a list of 10 random integer numbers in the range between 0 and 100 so that all random numbers are unequal?
73 views

### Scaling issue with Graphics3D and Parametricplot

There is likely a very simple solution, but I have been unable to find it. I am using Mathematica 10.4 and wish to combine a parametric plot with a 3d vector. Suppose I have a 3D vector drawn by <...
82 views

### Why does GreaterEqual take a long time to evaluate with arrays?

Take the following example: big = RandomReal[1, 10000000]; Head[big >= 0.66] // AbsoluteTiming (* {0.53489, GreaterEqual} *) Why does this take a long time ...
47 views

### Finding Nearest Element to a line in a 2 dimensional Array

so i have a 2-dimensional list of data of x and y coordinates. I am looking for a way to get the element of the list which has the closest y value to a given y value. I tried using Nearest but this ...
35 views

### Compile a function with string list as argument [duplicate]

I would like to know how such a function (even it is useless) can be compiled and what I did wrong. ...
5 views

124 views

### Infinite summation with absolute value

Recently I need to compute the summation like the following form: Sum[t^Abs[n - m], {n, -∞, ∞}, Assumptions -> m ∈ Integers] But Mathematica cannot figure it ...
132 views

### Predicting Manhattanhenge

At the time of writing, Manhattanhenge is tonight in New York City (ref 1), "an event during which the setting sun is aligned with the east–west streets of the main street grid of Manhattan, New York ...
65 views

### Interpretation of a function

I know this is not great, as far as a question, but I came across this function, ...
41 views

### How to have vanishing cell bracket for all notebook

I know that it is possible to make the cell brackets appear only when the mouse is upon them but I do not know how to do that. Of course for one cell it is shown in the documentation but not for an ...