0
votes
1answer
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 ...
2
votes
3answers
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 ...
4
votes
2answers
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 ...
3
votes
1answer
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: ...
1
vote
2answers
86 views

Numerical Integration involving multiple singularities [closed]

I want to solve the following double integral numerically. This integral has singularities in two points. ...
6
votes
1answer
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 ...
3
votes
2answers
80 views

Join data point with arrows in ErrorListPlot

the data is ...
3
votes
1answer
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: ...
2
votes
2answers
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: ...
2
votes
1answer
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 ...
14
votes
5answers
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 ...
1
vote
1answer
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?
0
votes
1answer
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 ...
5
votes
2answers
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 ...
0
votes
1answer
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: ...
4
votes
1answer
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: ...
2
votes
3answers
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 ...
2
votes
1answer
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: ...
1
vote
0answers
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.
1
vote
2answers
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 ...
0
votes
0answers
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,...
3
votes
1answer
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 ...
0
votes
1answer
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
5
votes
1answer
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 (...
1
vote
0answers
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: ...
0
votes
1answer
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 ...
15
votes
8answers
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: ...
1
vote
2answers
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?
2
votes
3answers
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 <...
10
votes
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
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. ...
0
votes
0answers
5 views

Meijer's G-function differentiation [migrated]

I am trying to calculate the derivative of the Meijer's G function, Based on wolfram function identities I have found in (07.34.20.0003.01) that the derivative is expressed asl: $\frac{d}{dx}G^{m,n}_{...
0
votes
0answers
20 views

Questions on applying a private Stylesheet to another Notebook

I have a notebook, let's call it Ideal.nb for short, with some styles defined in it and some were altered from what it inherits from Default.nb. If I want to reuse this stylesheet in my notebook ...
0
votes
2answers
57 views

How I can calculate product of series matrices

How I can calculate product of series matrices: A= Im...In. In-1 ...I1 which In = {{n,7n-2,3,2n-1},{3,4,n,6n-1},{9,3,n,n-3},{n-2,1,8,7n/3}} thanks!
-5
votes
1answer
77 views

Can't get plot using the Evaluate function [closed]

I am trying to plot a series of five curves using a loglogplot command and then labeling the curves with a value. This is the program I am trying to run. ...
10
votes
2answers
247 views

How to retouch (smart fill) photo image?

Can the program proposed by Alexei Boulbitch at the post of Custom arrow shaft be adapted to retouch an image in setting a mask arround the part one desires to disapear? This is only a suggestion, ...
0
votes
0answers
62 views

solving a set of 10 non-linear system of equations

I have a system of equations and I want to solve it to get a1, a2, b1, ...
1
vote
0answers
64 views

How to add text on plotted lines in Mathematica? [closed]

For example, like in this picture:
4
votes
2answers
106 views

Alignment of different-sized objects in Row

I would like to Align several distinct boxes so that the top of each one is at the same level. For example: ...
0
votes
0answers
31 views

Making function that returns output of FindRoot [duplicate]

I'm trying to make a function that returns the solution to an equation which involves three variables, where the input variables for the function are the other two variables. So far, it runs, but ...
11
votes
0answers
152 views

integrate giving wrong result

Bug introduced in 7.0 or earlier and persisting through 10.4.1 or later A question with the same title has been asked many times, but I can't find the solution of my problem in their answers. The ...
1
vote
0answers
24 views

Why Inner doesn't work with Dot/List? [duplicate]

The recent question about generalizing Dot for list of matrices had a nice solution/comment using Inner. Briefly, we have 6 ...
4
votes
0answers
82 views

Obtain a minimal set of parameters from a large number of rules

Problem statement I have a matrix $$D(\vec{k})=\sum_\vec{R}\tilde{D}(\vec{R})\cos(\vec{k}\cdot\vec{R})$$ where $\vec{R}$ is summed over all atoms positions and $\tilde{D}$ are 3x3 matrices. $D(k)$ is ...
4
votes
2answers
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 ...
4
votes
0answers
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 ...
0
votes
0answers
65 views

Interpretation of a function

I know this is not great, as far as a question, but I came across this function, ...
2
votes
1answer
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 ...
0
votes
0answers
34 views

Inserting Mathematical evaluation in text

I just have discovered that it was possible to incorporate calculation in a cell text with hilighting the formula and typping Ctrl + Shilt + Enter. Ok, but in the particular following case the output ...
5
votes
4answers
96 views

Using Manipulate to find best starting parameters to fit data

Often, curve fitting is very sensitive to starting values of parameters. It would be great, if I could to find such starting values of parameters "by hand" using Manipulate. So, I plot in ...

15 30 50 per page