5
votes
1answer
94 views

Synchronizing code in Dynamics with other procedures

I have huge code and some problem. I don't know how to make example. I'm afraid I can't make good SMALL example to demonstrate you the problem. So I'll try to explain. Maybe somebody know about such ...
3
votes
1answer
144 views

NDSolveValue - Heat flux continuity

I'm having some problems with NDSolve and the problem of conduction of heat. Specifically I'm having problems with the continuity of heat flux. First, let me explain what is the physical problem: ...
6
votes
4answers
193 views

Why does Mathematica return Indeterminate for this converging infinite sum?

Limit[Sum[k/(n^2 - k + 1), {k, 1, n}], n -> Infinity] This should converge to 1/2, but ...
1
vote
2answers
52 views

Using manipulate to observe vectors in a plane

How could I add a text with the coordinates at the ends of vectors? ...
4
votes
3answers
153 views

Optimizing a Difference in Mathematica

I have the following expressions: $$ \frac{1}{2} \Bigg [1 + \sqrt{a^2 + (b e^{-\gamma(\tau)})^2 + (c e^{-\gamma(\tau)})^2} \Bigg ]; $$ ...
1
vote
1answer
51 views

Local Max/Min from the list with fluctuation

I am trying to find the local minimum of the list of data with some noise. Here is how the data looks like below image, and I want to extract the three points. From an question by giacomo (link), I ...
4
votes
1answer
96 views

Mathematica 10.4 freezing after typing in new notebook

I've had the same version of Mathematica 10.4 installed for months without any problem, but this morning it is freezing every time I try to type in a notebook. New notebooks, new kernels, and existing ...
0
votes
0answers
32 views

What is the path to MathLink?

I am trying to call Mathematica from Julia language. My Mathematica version is 10.4.1 (on OS X). I get the following error in Julia: julia> using Mathematica ERROR: LoadError: ArgumentError: ...
0
votes
2answers
77 views

How to plot the mean of a 2d list with some empty elements

How can I plot the mean of such a list: http://pastebin.com/dNjeR4WC which contains an alternating number of elements in the sublists and some sublists that are empty and should not be considered in ...
1
vote
2answers
107 views

How to export an output matrix obtained in mathematica to a matrix in python with the correct format?

I have a large sparse matrix as the output and I want to save the output and open it as a matrix in python. The output is a 6000 x 6000 matrix and I don't know how to make changes to the file such ...
4
votes
0answers
29 views

Is it possible to call a generic dll/so shared library from Mathematica

In Python, there's something called ctypes. With ctypes, one can call any shared library function and get the results back to your script. It supports all kinds of C-language types, such as int, ...
3
votes
1answer
74 views

How to import Byte values of 8bit gray scale image

I have the following image (8bit, gray scale, 1600*1200 pixels): What confuses me: 1. Dimensions[Import[imageFileName, "Byte"]] gives ...
9
votes
2answers
943 views

Draw half empty rectangle

How can I draw an half or a third filled rectangle? I want to make one rectangle frame with a unity width and then filled it according to a value between 0 and 1.
3
votes
0answers
61 views
3
votes
3answers
180 views

Remove inner points from collinear List

Imagine a List of Points that is collinear: {{-1,-1},{1,1},{0,0},{-2,-2},{1,1}} How can I at first check, if such a List is collinear and if so, reduce it to ...
1
vote
0answers
63 views

Working with large integers in Modular Arithemetic

What would be the most efficient method of finding the remainder of the following division, 2^(2^330000000 - 1)/(2^330000001 - 1). I have tried using PowerMod function in Mathematica but i did not get ...
0
votes
0answers
27 views

How to make lines more smooth in Graphics3D? [duplicate]

I drew using Graphics3D, but I found the quality of output is very low, like this:. I wanted to improve the quality of the output, make it more smooth. But I can't ...
1
vote
1answer
42 views

Show function seems to be broken [closed]

I read the thread How to make the Show function work in this case?. I think I have the same problem as discussed there. But when I try the to evaluate ...
6
votes
4answers
313 views

ToUpperCases based on the original string

Suppose I have a numberic string str = "1234567456"; and another string called nstr = "05eccead24"; I want to transform ...
6
votes
3answers
189 views

Why do Disks become polygons in RegionPlot?

I want to RegionPlot a reinforced concrete section, by drawing a polygon as a rectangular shape, and on top of that, a number of circles as ...
3
votes
1answer
71 views

Generating plane equation from LinearSolve

I will ask a simple question and might have an issue on the site that explains better about it, but not found. I am formulating a code that defines me an equation that I can generate a plot. ...
5
votes
1answer
44 views

Modified Derivative Definition Does Not Thread Over Sum

I'm redefining how a derivative of a polynomial is taken. I have polynomials or posynomials where x is to a fractional power, and derivatives are of integer order. But if the order of the derivative ...
5
votes
1answer
103 views

Is there a better way to produce a shape with exclusions in RegionPlot3D? [duplicate]

I'm attempting to create a certain shape. It's essentially a rectangular prism with an array of cylinders cut out of it, and then some half shells of cylinders along the sides. My attempt is basically ...
3
votes
1answer
83 views

Knowing the functional form, how to find best-fit parameters and their uncertainties for a set of raw data in Mathematica 8?

I am trying to plot the best-fit curve (with known functional form but free parameters) passing through the following set of discrete data points which would take into account the size of error bars ...
2
votes
1answer
55 views

Combining Map with Drop [duplicate]

I assume my question has been answered before, but I can't find such an answer anywhere:. How can I drop the first element from each sublist within a list? I should be able to use ...
1
vote
0answers
35 views

Can you define “| |” to be the same as “Abs[ ]”? [duplicate]

When calculating the modulus of a complex number in Mathematica, the standard (and probably least-ugly) way of doing it is by using the Abs[ ] function. When doing ...
0
votes
0answers
40 views

Generate rule that replaces if string matches pattern

I have let's say a function f[x], but for x I pass a string. And I want to replace that string with a number, if that string ...
1
vote
1answer
105 views

Approximating Integral under 2D Interpolation function

First, I have already been working on this problem, and have asked a similar question previously here. I am trying to find the integrals of 2D interpolation functions that are output from ...
2
votes
2answers
58 views

How do I display the numeric value of a curve with Tooltip?

Using Tooltip, is it possible to display the numeric value of the curve I've plotted using Plot and ...
2
votes
2answers
144 views

Creating a single three-dimensional array from imported data

I'll preface this by saying that I'm not a Mathematica veteran - I'm a chemist who is trying to find a way to import time-dependent spectral data in a usable form. I have figured out how to import the ...
5
votes
0answers
70 views

Geographic text recognition [closed]

I would like to process an image from this Wikipedia page to get the structured data out Like so <| "New York" -> 28, ... |> Not sure where to start.
7
votes
3answers
170 views

Confusion with Neumann and Dirichlet

If I solve Laplace's equation with Neumann boundary conditions then everything is defined via derivatives. Consequently one needs to fix a point with a specific value to get a solution. However if I ...
1
vote
0answers
53 views

NSolve and FindRoot failing to evaluate

So I am integrating a Piecewise function and then using NSolve to find out where the limits of integration lie to satisfy an ...
0
votes
0answers
40 views

How to Plot component frequencies, amplitudes and phases of a mixed signal

I generated a mixed signal by adding two sin waves (whose parameters I can change dynamically) and plotted them. I used the code for findPeriod from here to find the amplitudes, frequencies and phases ...
0
votes
1answer
53 views

Intersection of volumes defined by inequalities

I have 5 inequalities with some parameters like dh, din and thetawhich I intend to vary. In ...
3
votes
1answer
67 views

Why doesn't Mathematica abort evaluation when I tell it to?

This frequently happens to me. I'll have some code, execute it, and realize it's taking a long time. My PC isn't frozen, and Mathematica itself isn't even frozen: I can select stuff in the notebook, ...
0
votes
0answers
27 views

Context DocumentationSearch was not created - Why? (in Mathematica 10.4)

I try to look up Options of Plot3D and therefore I highlight this word in my notebook and press the key F1. It gives me a message ...
1
vote
0answers
10 views

How to convert from UTM coordinates to LatLong? [duplicate]

I have a dataset containing UTM coordinates that I need to use in GeoGraphics. I need to convert them to LatLng form. Is there any easy way to do this?
-1
votes
1answer
52 views

Given a function of two variables, how can I define a 2nd function that is the integral of the 1st w.r.t. one of the variables? [duplicate]

Given a function of two variables, how can I define a 2nd function that is the integral of the 1st w.r.t. one of the variables? I have a function $f(x,y)$ and I want to do the integration like $\int^...
1
vote
0answers
28 views

Why are there these jagged “shards” in my RegionPlot3D?

I'm creating a region out of two component regions. Before anyone suggests it (because a lot of similar questions are about it), I don't think the problem is increasing PlotPoints. I've increased it ...
1
vote
0answers
48 views

ConvexHullMesh fails for collinear points

I've got a List of PointLists, of which some contain only collinear points. I now want to obtain all ConvexHullMeshes of my PointLists. For more than two ...
2
votes
0answers
33 views

How to specify image quality for GeoStyling “GeoImage” in GeoGraphics?

I am creating plots (ContourPlot, SmoothDensityHistogram, etc.) that I then need to project onto geographic polygons. When this ...
0
votes
1answer
50 views

How to solve a differential equation system involving complex conjugates?

Consider the following system of differential equations sys = {y'[t] == g*z[t], z'[t] == g*y[t], y[0] == y0, z[0] == z0}; which we can solve ...
1
vote
0answers
39 views

Hidden Markov Model: emissions probabilities dependent on observable parameter

I need to fit an HMM where the emission probabilities (ep) are discrete and dependent on a known variable quantity. E.g.: Imagine a daily time series of binary emissions ("1" or "2"). I suppose an ...
2
votes
3answers
81 views

binning list of lists in unequal bin lengths

I'm lookin for binning of ...
1
vote
0answers
30 views

NIntegration[?] and N[Integration[?]] [duplicate]

The following Integral answer is different with the following two methods. which one is correct? ...
12
votes
6answers
534 views

how to permute list of number{1,2,3,…,n},while preserve the order of first m terms as well as the last n-m terms?

For example, starting from {1,2,3,4}, I want to generate all permutations like {1,3,2,4},{1,3,4,2},{3,4,1,2} which preserve the ...
3
votes
2answers
139 views

Plotting: one label for two curves

Consider the following code ...
0
votes
0answers
14 views

Error witih DSolve [duplicate]

I am trying to solve these differential equations: ...

15 30 50 per page