0
votes
0answers
11 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
13 views

3D interpolation

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 ...
3
votes
0answers
21 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: ...
1
vote
0answers
16 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 ...
5
votes
1answer
39 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. ...
4
votes
3answers
113 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
124 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 ...
2
votes
2answers
53 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
65 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
71 views

How to enter piecewise functions into Mathematica

I'm trying to enter a piecewise function (named eq30) into Mathematica. However, it seems not to work. The expression I entered is ...
1
vote
1answer
41 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. My first try was simple. I initialized an ...
5
votes
1answer
46 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
1answer
84 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
47 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
39 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
55 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
45 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
37 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
46 views

Converting a quantity to a decimal form

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
56 views

Reduce Inequality

How can I reduce the inequality in terms of modulus of alpha. ...
0
votes
1answer
37 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
240 views

Fitting - Exponential

I'm trying to fit the following data using Mathematica, but unfortunately im not getting any decent results. ...
3
votes
3answers
211 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
41 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
0answers
32 views
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
20 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
196 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. ...
1
vote
2answers
48 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
37 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
63 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 ...
0
votes
1answer
77 views

Solving a simple linear differential equation does not work as advertised [on hold]

I have been following examples in an introduction to Mathematica. But the following example regarding a linear differential equation does not work: ...
3
votes
0answers
15 views

Declare new “Form” wrapper and avoid this wrapper being recorded in Out[…] [duplicate]

When I input {{1,0},{0,1}} // MatrixForm and then m = %;, the value that m takes is the ...
0
votes
0answers
30 views

what the meaning of subscript in matrix below? [on hold]

${-, 0, 0, 0, 0, 0, -((b 1 (1 (n-n 1)-a 2 (-1+2)))/(n ))}, {0, -, 0, 0, - Subscript(1,0)[(n 1 1+a 2 2)/(+),0], 0, -((b  2 (n 1 1+a 2 2))/(n  (+)))}, {0, 0, -g-, 0, 0, 0, (b ...
1
vote
0answers
77 views

Alternative to use a function as an argument in Compile

I am currently working on problems that require the use of functions such as : ...
0
votes
1answer
53 views

Nonlinear boundary value problems for fourth order ordinary differential equations

I am trying to solve a set of equations which are fourth order equations. I want to get the value of w ...
3
votes
2answers
106 views

How to declare a function as real in order to get rid of Conjugate in front of the expressions?

I have a complicated complex function containing some other ones that are real, f=f(A,B,C,...) ,where A=A(r) and it is real, for ...
6
votes
1answer
98 views

Is there a practical way to define a default value for missing keys in an Association?

It can be very useful to define background or default value for an object that can be incremented or otherwise modified. A simple (and for me, common) use is a counter: ...
1
vote
2answers
64 views

TargetFunctions option in FindDistrobution yields error

I have some data set that I am trying to find the maximums . I figured I could do this by fitting the many peaks of the dataset to Gaussian distributions and then finding the peaks of this data from ...
3
votes
1answer
130 views

How to sample n frames from a movie file?

I'm looking to import 100 image frames from an mp4 video file at roughly evenly spaced intervals. As $ImportFormats shows, Mathematica can handle Movie files: .avi, .mov, .qt, .flv Multiframe ...
1
vote
1answer
49 views

Ndsolve problem with Sign

Using Sign(...)] in the formulation of my system of ODEs is causing an error that I don't know how to correct. If I use (...) in ...
8
votes
2answers
122 views

Getting a correct custom legend for contourplot?

I am having trouble making a custom range for a legend in ContourPlot since the legend doesn't "talk" to the PlotRange and ...
2
votes
1answer
77 views

Implicit derivatives in one line. How do I do it?

I have this little script to derive implicitly $PrePrint = # /. {D[y_, x_, NonConstants -> {y_}] :> y'[x]} &; Example: ...
1
vote
0answers
43 views

CCompile Problems

Operating System: Windows 8.1 Mathematica: 8 In possession of: Visual Studio 2013 and 2015 Had to alter the visual studios driver file within CCompilerDriver application, add-on so that it found the ...

15 30 50 per page