1
vote
1answer
11 views

Pattern for a function of say 2 variables

How can I specify a pattern for an expression f for which say f[x,y] returns a value, ie is defined as a function taking two ...
2
votes
1answer
22 views

How to mix symbols and text for labels in manipulate?

I'm creating a big manipulate box with several sliders, and each slider must have a small explication text (units, for example) after a mathematical symbol. As a simple example, here's the code I'm ...
0
votes
0answers
6 views

Having issue for solving a system with seven equations

I have a system with seven following equations and three constrains. I tried to solve them using NSolve[], but it takes forever without getting any result. Also, I tried it without any constrain, ...
5
votes
3answers
93 views

Gatherby/Splitby and Sort a list

So let's say I want to group a list of points based on their distance from the origin. I would do something like: ...
0
votes
0answers
36 views

How can I declare $(\mathbb Z_8,+)$ group in Mathematica?

I am learning computational group theory. Mathematica has GroupGenerators(group) command where you need to specify the group somehow but I am unable to find how to declare the group at the first hand ...
1
vote
1answer
56 views

DSolve - Complex Number Solutions

some of you know that I have been working on my dissertation of Game-Theoretic Modelling of Cybersecurity (Thank you again to everyone who has helped me with Mathematica so far). The differential ...
2
votes
0answers
10 views

help with string patterns and RemoveCellTags

I am building a table of contents using AuthorTools. I used it to create cell tags so the TOC can make hyperlinks, but then I decided I wanted to change them. But I am having trouble removing the ...
1
vote
0answers
13 views

CheckboxBar doesn't work with TrackedSymbols

CheckboxBar doesn't work with TrackedSymbols and a custom callback function. Here's an example that doesn't work ...
0
votes
0answers
14 views

Conditional probability $P\left(X \in A \middle| \, Y \in B \right)$

I am trying to compute a conditional probability of the form: $P\left(X \in A \middle| \, Y \in B \right)$. In details: Let $g$ be a complex r.v. normally distributed as ...
0
votes
1answer
43 views

Problem with solving an optimal control system with Shooting Method

I try to solve a system of differential equation by shooting method. I looked at questions asked on the site but I could not find that could help me. My functions are ; ...
0
votes
0answers
11 views

Button with Do loop in Manipulate

I have the toy Manipulate. ...
4
votes
1answer
103 views

Inaccurate Heliocentric coordinates of PlanetaryMoonData

I have noticed that the heliocentric coordinates obtained with PlanetaryMoonData are very inaccurate. Fore example, consider the Galilean moons of Jupiter: ...
18
votes
0answers
233 views

What is ColorEqualSigns and how does one use it?

I'm setting up the SyntaxInformation for a package I'm writing and I'm struggling to understand what the "ColorEqualSigns" ...
0
votes
1answer
25 views

Exponential number with negative base?

Consider the following number: (-1)^(2/3) I want to get output in real field, equal with: (-1)^2 = 1, 1^(1/3) = 1 Thus ...
2
votes
1answer
56 views

Generating x,y coordinates for an edge detection of image

i have a photo and I want to obtain the coordinates in a table form of its edge so that I could input the data into Autodesk Inventor May I know how I can do it
1
vote
1answer
34 views

plotting all solutions of differential equations for many parameters

I have a list whose elements is in the form {{f[x]-> some function of x}}. How do I manipulate it to bring in the form ...
6
votes
1answer
151 views

Risk-return trade-off — solving a convex optimzation

I try to convert a convex optimisation (cvxopt) example to the Wolfram Language from python. Source of the python code: Risk-return trade-off Please advise me on how to convert the following python ...
3
votes
2answers
64 views

Linearity of expectation not respected

I have found that Expectation gives different results if I use the fact that expectation is linear and evaluate it on every term independently. I reduced my ...
-3
votes
0answers
38 views

why we get a complex number when calculate the sqrt of a negative number [on hold]

why we get a complex number when calculate the sqrt of a negative number, exp:why the result of this input in[1]: Sqrt[-16] is ...
2
votes
1answer
39 views

ExcelRun::failed: Type mismatch >> error when calling an Excel macro from Mathematica

I have a macro in a module within an Excel file (called "test.xlsm", saved on my desktop) that takes one argument as a string: ...
2
votes
1answer
163 views

Manipulations with options

I have two functions with options, for example f and g ...
1
vote
1answer
53 views

What function can transform A*Cos[x]+B*Sin[x] to Q*Sin[x+R] form?

I've tried several functions related to trigonometric transformations, namely TrigFactor, TrigExpand, ...
1
vote
0answers
20 views

Order of importing data from files

I have many text files numbered from 1 to 1 million in numerical order. Within each text file is 5 columns of data (TAB spaced) with many rows. I effectively want to take the minimum value from each ...
4
votes
1answer
206 views

Solving the Frenet Serret equations for non-constant curvature and torsion, obtaining parametric equations

I wish to solve for the curvature and torsion functions $k_1 = \dfrac{1}{1+s^2}, k_2 = \dfrac{s}{1+s^2}$ using the Frenet Serret system and obtain the parametric equations for the curve. I need the ...
-1
votes
0answers
19 views

When we solve PDEs by the method of lines in NDSolve, can we control the temporal steps?

A method of NDSolve for solving time-dependent PDEs is the method of lines. According to its documentation, we have some control about the spatial grid, as in the ...
5
votes
1answer
139 views

Remove leading and trailing zeros from a list

This functions and gives the desired result: {1, 0, 2, 0, 0} /. {x___, 0 ...} :> {x} {1, 0, 2} But with leading zeros it doesn't: ...
0
votes
1answer
36 views

Can't sort my list numerically for larger numbers than 10 e.g. 1,10,100,2

I want my files names in real numerical order so 1,2,3,10,12. However it is currently putting them in order like so: 1,10,12,2,3 Input: ...
4
votes
1answer
48 views

Appearance of a slider

I just observed that in Mathematica 10.3 for Windows the appearance of a slider has been changed. The slider is now blue, black when the mouse is over the slider and gray when the slider is dragged. ...
5
votes
2answers
414 views

Graphing time-series

I'm currently trying to use data gathered as a function of time (here, the fluorescence of a biological sample), but am new to Mathematica and don't know how to properly specify axis relations (and ...
14
votes
1answer
134 views
+50

How to count proportion of two phase in a electron microscope picture

I have a picture: The sunk area is a phase,and the bulged area in another phase.I want count the proportion of this two area.this is my method.First I get the ...
0
votes
1answer
62 views

How to convert this .txt data into a list of points [on hold]

Question How to import data from a .txt file into Mathematica and convert it to an expression? Download the .txt file here (click download): http://pastebin.com/2NW2DfiE
5
votes
4answers
135 views

SubsetQ[] without ignoring duplicates

How could one create a code that checks whether a set is a subset of another, but not ignoring the duplicates? For example, $\{1,1,1\}$ would be a subset of $\{1,1,1,1\}$, but not vice versa. ...
1
vote
0answers
22 views

Export the coordinates of STL object

Hi I currently have a STL file of a 3D object Is it possible for me to obtain the coordinates of the object so that I can just input that into Autodesk Inventor
4
votes
1answer
92 views

Control Object Annoyance

This may seem like is a trivial annoyance, but it really is a control object "convenience of use" issue. Example: I want to use a popup menu to determine which Excel worksheet I take data from, as ...
1
vote
1answer
154 views

ExcelLink: “Choose a Mathlink program to launch” after upgrading from 10.0.2 to 10.1

After upgrading to 10.1, I now get a prompt "Choose a Mathlink program to launch" when I call code that uses ExcelLink. This code worked prior to the update. I am wondering if this is a ...
0
votes
0answers
39 views

How can I get a list of the “coefficients” of Quaternion[1, 2, 3, 4]? [duplicate]

I want to input: Quaternion[1, 2, 3, 4] to get a list: {1,2,3,4}.
0
votes
0answers
54 views

Slow and laggy animation of an electromagnetic wave

I made a manipulate code of an electromagnetic plane wave which works relatively well, but is very slow and laggy for what it does (showing just a bunch of rotating or oscillating arrows). What is ...
3
votes
2answers
186 views

How do I get the inverse of a homogeneous transformation matrix?

I want to get the inverse of this homogeneous transformation matrix: iab = { {1, 0, 0, 0}, {0, 0, -1, 0}, {0, 1, 0, 3}, {0, 0, 0, 1} } ...
2
votes
3answers
102 views

Contour plot of the imaginary portion of a function given the real part is positive

How do I plot the imaginary part of the function while its real part is positive? For example, for the below code I could have the imaginary part but I am not able to find the positive or negative ...
4
votes
1answer
74 views

How to implement QLearning?

I know that v10 has support for both Machine Learning and Finite Markov Processes, the Q-learning algorithm uses both. Specifically, Q-learning finds an optimal action-selection policy for any given ...
14
votes
2answers
176 views

Counting number of tubes in an image

The task is to recognize the tubes on the ceiling in the following image Get the binary image ...
1
vote
1answer
63 views

Product derivative on derivative [closed]

this is a silly question, probably. How to product derivative on derivative in Mathematica. I mean for example how to achieve this result: Just more explanation. I need this for solving task with ...
0
votes
0answers
72 views

Product of two Meijer's Function

I want to evaluate an integral $I_1$ defined in $Eq.(1)$ as \begin{align} I_1=\int_{0}^{\infty}\frac{x\exp(-\beta x)K_1(\alpha x)}{1+x}dx\tag{1} \end{align} Where $\alpha\geq0$, $\beta\geq0$, and ...
6
votes
0answers
89 views

3D orbits of moons around their respective planets

I have seen a lot of solar system models (both animated and not), but I am trying to replicate the same thing with moons. Either just one planet and its lunar system or the our whole solar system with ...
0
votes
0answers
69 views

Solving general system of equations

I want to find the closed form solution to a general system of equations. The number of equations and variables is C. How do I specify the system of equations? If ...
0
votes
0answers
92 views

Phase space of a system of differential equation

I have a system of three Coupled nonlinear equation of a physical system and i would like to plot the phase space. My system is a chaotic system dependant of three variable dependant of time (l1, ...
3
votes
0answers
47 views

WhenEvent and Resetting of Variable in PDE when operation succeeds

I have had success in using WhenEvent to reset or change a variable within NDSolve with ordinary differential equations. My ...
1
vote
0answers
38 views

How to Build a Drop Down Menu? [duplicate]

I am new to Mathematica so I am sorry if the question is rudimentary. :) When I was reading the help page, I noticed that there is a structure like the picture below for the topics in the help page ...
2
votes
1answer
37 views

How to gather terms into Elementary Symmetric Polynomials?

I would like to gather the terms of this polynomial (and much higher order ones): $$q = 1-3 c+c^2+p[1]-2 c p[1]+p[2]-2 c p[2]+p[1] p[2]-c p[1] p[2]+p[3]-2 c p[3]+p[1] p[3]-c p[1] p[3]+p[2] p[3]-c ...
3
votes
2answers
239 views

Handling options in my function [duplicate]

It seems this should be easy, by I just can not figure out how. I'm making many very similar style plots, so I want to make a function with all the default options specified. Sometimes I need to tweak ...

15 30 50 per page