0
votes
0answers
4 views

RegionIntersection fails for some values with polygons

I want to find the intersection (region) of 2 polygons. I use RegionInstersection but it only works for some sizes, for example, when c=.5 it gives the correct result, but with c=.4 it only finds a ...
0
votes
0answers
8 views

Adding FrameLabels but without showing a Frame using GraphicsRow

I'm trying to create a set of plots that share similar axes (axes in the general sense, I'm actually using Frame). I'd like to have the text describing the axes plotted to the left of the first plot ...
0
votes
1answer
27 views

Drawing lines automatically between two different plots

I try to create a special plot where several lines have to be generated automatically between two plots at very precise coordinate. My goal is to make something exactlly like But I want to do it for ...
4
votes
0answers
25 views

Is there a problem with some of the curated Star Data?

I'm not really sure if I'm doing something wrong, or if there's a problem with some of the Mathematica curated data on stars. My problem is this: I'm trying to find the location (latitude and ...
2
votes
0answers
20 views

Nonlinear abscissa in TimelinePlot

I would like to produce a TimelinePlot in which the scale of the abscissa varies nonlinearly (compressing old dates and expanding recent dates). Others have ...
0
votes
0answers
52 views

How to make the output digital?

I tried the following codes, but the output is not in digital form. : ( ...
0
votes
0answers
37 views

Union sorting after ignoring some digits

I have a list with its bellow elements: {-0.7071067811865476, -0.7071067811865475, 0.7071067811865475, 0.7071067811865476} If I use Union, but there is no change. Because the numbers are different. ...
3
votes
0answers
38 views

Export Plot3D in Mathematica 10.1 is Rasterized by default

When I use Export to export Plot3D to pdf format, I get different behaviour in Mathematica 10.1 compared to 10.0. In particular, ...
0
votes
1answer
30 views

Mapping Linear Model Fit Over An Arbitrary Number of sets

I have multiple sets of data, and I want to apply Linear Model Fit sequentially to each set of data. For example, below tstlst contains 3 data sets. Right now I ...
1
vote
0answers
40 views

Gaussian Pulse Fitting with N pulses

Im in way over my head here and am fully aware of it, and hoping for some help. I've been assigned to a project where I am given data: Smooth it with a moving median: and then need to find ...
2
votes
2answers
64 views

FEM: This is not a polynomial error

Executing the program below I get the This is not a polynomial error message. I don't have an idea why I am getting this -- any suggestions ? ...
1
vote
1answer
40 views

Image smoothing with own smoothing function

I have thousands images similar to the following one: This image was produced with the following color table: ...
2
votes
1answer
36 views

Using Epilog to increase text size

I have a plot with labels positioned using the epilog function for convenience. I would like to increase the size of axes labels within the epilog function but I haven't managed to figure out a way to ...
1
vote
0answers
38 views

Partial Derivative of f with respect to x1 [duplicate]

How can I calculate the partial derivative of a series like e.g. $$ a = \sum _{i=1}^n \left(2 x_i^2+z\right) $$ with respect to $x_{1}, x_{2},... x_{n}$ using Wolfram Mathematica? I tried it with: ...
0
votes
0answers
34 views

Complex Contour Plot of Three complex variables function

eqn[x1_, y1_, x2_, y2_, a1_, a2_] := ((a1 + I a2) - (x2 + I y2))/(((x1 + I y1)(x2+ I y2)) - (a1 + I a2)) How can I plot the eqn? I need contour plot for ...
3
votes
1answer
37 views

What is the difference between Update, Run Package, Save and Install for packages?

I am building a package, using Mathematica 10.0.2.0. I notice in the displayed window for the package there are buttons labeled Update and Run Package; on the File menu, there is an item for Save; ...
1
vote
0answers
24 views

Problem with using `WorkingPrecision` with `LogPlot`

In looking at the issue referenced in LogPlot does not show all points, I noticed that use of WorkingPrecision causes really odd results on my system. A related ...
1
vote
0answers
36 views

MatrixRank of a large but sparse matrix

I want to find the rank of a very sparse, quite rectangular matrix mat, but I'm running out of RAM (I have 16 GB) if I try to use ...
2
votes
1answer
49 views

Easy way to bind rect to geometrical 2D line?

I got stuck with the following problem. For some calculation and visualization purposes I need to draw different shapes (like rectangle) with proper slope on custom line. The trivial example: ...
0
votes
0answers
36 views

3D interpolation [duplicate]

I have four column data with first 3 column denoting x,y,z and fourth column energy. x variable is actually angle. Now I want to interpolate over all three indepdent variable (x,y.z) with ...
-1
votes
0answers
8 views

Create formula to get a value [migrated]

I have clients whichs pay a monthly fee. I would like to know the accumulative total for a given quantity of month for a given fee. Plus I get 2 new clients every month. Let's say a client pays ...
5
votes
0answers
40 views

Strange result of DeleteCases in an association

The function DeleteCases can be used for associations, also with level specification. Here is an example where some values are associations: ...
2
votes
0answers
34 views

LogPlot does not show all points

LogPlot ignores points which are going to "too high" values: LogPlot[1/x, {x, 10^-12, 1}, PlotRange -> {{-.1, 1}, All},Frame -> True] gives: I'd rather ...
7
votes
2answers
72 views

Connect to USB Serial Converter

(I'm using Windows 7 & Mathematica 10) I have a sensor with RS232 serial interface. The sensor came with a RS232-to-USB converter and corresponding driver & software for data transportation. ...
6
votes
3answers
334 views

How to put an imported image in a Disk?

The image below contains various ( lightblue filled ) circles ( made with the Disk function ), I want to fill them with an external image ( for example of a face ) such that each circle contains the ...
1
vote
2answers
168 views

How to do make Plot automatically figure out a domain interval?

When you tell Wolfram|Alpha to plot something, it automatically figures out a reasonable domain to plot it over. When I try something like Plot x^2 + y^2 = 1000 ...
3
votes
2answers
64 views

Manipulate a 2D point controlled simultaneously by Locator and its coordinates

I'm trying to have a point in the plane which can be manipulated both using Locator as well as inserting its $x$ and $y$ coordinates. My attempts at doing this are: ...
0
votes
1answer
86 views

Solve a differential equation using the power series method

I used the power series method to solve the differential equation y’’+y=0 with y[0]=0 and y’[0]=1 using the following code. In this code “y” is considered as “y = Sum[c[i] x^i, {i, 0, n}] + O[x]^(n + ...
0
votes
1answer
81 views

How to enter piecewise functions into Mathematica [on hold]

I'm trying to enter a piecewise function (named eq30) into Mathematica. However, it seems not to work. The expression I entered is ...
3
votes
1answer
78 views

How do I make a Graphics3D Object act as a Button?

The original idea is from: http://demonstrations.wolfram.com/ClickACountry/ What I'm trying to do is to create a series of Graphics3D objects and let them control the display of corresponding ...
6
votes
1answer
54 views

Is $ModuleNumber working properly on my machine?

In the documentation ref/$ModuleNumber, I read: Every Wolfram System session starts with $ModuleNumber set to 1. Yet, when I quit Mathematica 10.1 (OS X 10.10.4), restart it, open a new notebook ...
0
votes
2answers
114 views

Random non-overlapping disks in a square

I've found a nice code snippet by @belisarius from this question, that I'll reproduce here for reference: ...
0
votes
0answers
7 views

Can someone tell me what mr is in the following code? [migrated]

I found this algorithm to convert a rotation matrix into a quaternion but i can't seem to understand which matrix mr is? If mr is the rotation matrix then what is mat? ...
2
votes
0answers
62 views

Performing a convolution for smoothing a function

I want to smooth a one-dimensional oscillating function by convolving it with another function that I'll call the screening function. This screening function should have a trapezoidal form and go to ...
0
votes
0answers
52 views

Linking to C++ files [duplicate]

I have written mathematica file that does manipulations on a certain set of points. I would like to access code that someone else has written for a least square fit in C++. How do I access this C++ ...
1
vote
1answer
62 views

Solving a transcendental equation

I want to solve the a transcendental equation, e.g. NSolve[-(1-x)*Log[1-x] - x*Log[x] == 0.5, x] Mathematica is not able to solve, wheres WolframAlpha -- is able ...
2
votes
1answer
52 views

How do I extract units from an expression

I need to take the units off of this expression: (5 Coulomb)/(6 Second) In order to do some unit simplification. Is there any way to do this? I have tried Case, but could not get it to work ...
4
votes
1answer
43 views

Set control A to a specific value if control B is ever changed?

I've had trouble with this and issues similar to this in the past, where I need to track when a controlled variable is changed. Basically I have two Sliders (call ...
2
votes
1answer
52 views

Converting a quantity to a decimal form [on hold]

I have a function giving me this: (5 Coulomb)/(6 Second) as output. I want this in decimal form and would like to have the variables taken off the end for unit ...
1
vote
1answer
58 views

Reduce Inequality

How can I reduce the inequality in terms of modulus of alpha. ...
0
votes
1answer
41 views

How to get DistributionChart to show normalised densities?

I am having some issue getting DistributionChart to show bin widths as expected, or perhaps it is in my interpretation of the plots. I have four data sets, all of the same length, and plot them in ...
3
votes
3answers
251 views

Fitting - Exponential

I'm trying to fit the following data using Mathematica, but unfortunately im not getting any decent results. ...
3
votes
3answers
218 views

Efficiently test membership for a list of values

I have two lists: excluded and values. I would like to efficiently determine whether ...
3
votes
2answers
45 views

How to use locally scoped dynamic variables in Manipulate for expression and control parameters

I have a Manipulate that has dynamic variables that I want to use in the displayed expression and use in the parameters for the manipulate controls. I only ...
0
votes
1answer
43 views

Write a function pollard[n, B] that tries to factor an integer n, using Pollard's p − 1 method with at most B iterations [on hold]

This is what I got but it seems it's not working. When I test it, it just goes through and nothing gets returned. Is there something I'm missing? ...
0
votes
0answers
22 views
0
votes
0answers
21 views

How to make 3D error bars in a plot? [duplicate]

if I have the following data in this format and the error bars are the same for each point: ...

15 30 50 per page