0
votes
0answers
16 views

How to make the output digital?

I tried the following codes, but the output is not in digital form. : ( Input: Output: Thanks.
0
votes
0answers
16 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
13 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
22 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 ...
0
votes
0answers
22 views

Numerical Error between Sqrt vs Norm

Not quite sure how to reconcile this discrepancy: Norm[{16,14,4}]//N (*21.6333*) Sqrt[Abs[16]^2+Abs[14]^2+Abs[-2]^2]//N (*21.3542*)
1
vote
0answers
30 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 ...
1
vote
2answers
40 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
29 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: ...
1
vote
1answer
29 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
28 views

Partial Derivative of f with respect to x1

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
29 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
28 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
22 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
34 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
40 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
33 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
36 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
32 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
60 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. ...
5
votes
3answers
275 views

How to put an imported image in a Disk?

(This question has probably been asked before but my searches return no results.) The image below contains various ( lightblue filled ) circles ( made with the Disk function ), I want to fill them ...
1
vote
2answers
163 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
81 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
79 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 ...
2
votes
1answer
58 views

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

What I'm trying to do is to create a series of Graphics3D objects and let them control the display of corresponding Graphics3D objects in a different Pane and maintain the Graphics3D feature at the ...
6
votes
1answer
51 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
106 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
57 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
48 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
61 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 ...
1
vote
1answer
51 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
41 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
216 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: ...
5
votes
2answers
199 views

What is the idiomatic way to shift and extend a list by a number of elements?

I have a lists, list, and want shift it right by a given number of elements, m, extending the list by repeating the last ...
0
votes
0answers
12 views

Comparing association using MatchQ [duplicate]

For me below query results into False.I expect it to return True. ...
2
votes
2answers
50 views

How to delete blank valued keys from nested association?

Considering we have: acs = <|"A" -> <|"a" -> " ", "aa" -> "asd"|>, "B" -> <|"bb" -> " "|>|> How can we come to have a result ...
1
vote
0answers
38 views

How to solve a nonlinear overdetermined system of equations

i'm trying to solve a nonlinear overdetermined system of equations (124 equations, 123 variables) i tried this procedure (newton raphson) ...
3
votes
2answers
64 views

Retaining relative sizes of local maxima using MaxDetect[List]

I would like to be able to find the position of the two greatest local maxima in a list. For the example: list={1,2,3,4,2,1,2,6,5,4,3,2,} I would like to return ...

15 30 50 per page