All Questions

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 ...
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: ...
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 ...
52 views

Using manipulate to observe vectors in a plane

How could I add a text with the coordinates at the ends of vectors? ...
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 ];$$ ...
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 ...
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 ...
70 views

...
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: ...
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 ...
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 ...
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, ...
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 ...
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.
61 views

...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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?
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^...
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 ...
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 ...
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 ...
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 ...
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 ...
81 views

binning list of lists in unequal bin lengths

I'm lookin for binning of ...
30 views

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

The following Integral answer is different with the following two methods. which one is correct? ...
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 ...