All Questions

3
votes
1answer
335 views

PairwiseScatterPlot with histograms along the diagonal

The built-in function PairwiseScatterPlot has been discussed for example here: Scatterplots for subsets of multivariate data [Updated]. However, I find it not very ...
0
votes
0answers
3 views

InstallR[] failing in Mathematica 12

I was trying to use R with Mathematica 12 tried these three commands, Needs["RLink`"] InstallR["RHomeLocation" -> "C:\Program Files\R\R-3.5.1", "Rversion" ->"3.5"] I am getting this error JLink'...
7
votes
2answers
179 views

Pairwise Scatter Plots with Histograms and Correlations

Has anybody written a function which can scatter plot data with histograms and correlations? Here is an example form MATLAB. This is related but does not print correlations. R has a similar function. ...
5
votes
3answers
78 views

Could this problem be tackled using Mathematica?

I posted this question on Math, but there has been silence there since. So, I wonder if anyone here can get any closer to the answer to my question using Mathematica. Here is the question: Suppose I ...
1
vote
2answers
28 views

How to use the roots of equations

Can anyone explain to me how can I use the roots of an equation? Let clarify my question with one example. Suppose that I have an equation which I want to find its root: ...
3
votes
4answers
300 views

How can I simplify $\lim_{n\to \infty } \, \int_0^n e^{-x} \left(1-\frac{x}{n}\right)^n \, dx$?

How can I simplify $\lim_{n\to \infty } \, \int_0^n e^{-x} \left(1-\frac{x}{n}\right)^n \, dx$ ? Limit[Integrate[(1 - x/n)^n/E^x, {x, 0, n}], n -> Infinity] ...
1
vote
1answer
82 views

How do we optimise double Tables?

I have made the following code which I shall explain it in two parts: First Part: ...
0
votes
0answers
47 views

How to differentiate a function constructed through FindRoot?

I am trying to maximize a function which has as a variable another function that was solved numerically using FindRoot. My code is below.I start by defining some parameters ...
1
vote
1answer
54 views

Defining functions from strings

Blank symbol (_) is moved when applying ToExpression to the following string: ...
2
votes
2answers
58 views

Evaluating FourierTransform like integral manually

I am trying to evaluate Integrate[x^2*Exp[I k (x - 1)], {k, -∞, ∞}, {x, -∞, ∞}] Since $\frac{1}{2\pi}\int_{-\infty}^{\infty} e^{ik(x-1)} d{k}$ is $\delta(x-1)$, ...
3
votes
1answer
25 views

Is there a limit to the amount of curated data that can be retrieved?

Mathematica provides access to curated data on many entities. For access to some of the curated data (e.g. current exchange rates), users must have an internet connection. Is there a limit (i.e. quota)...
-1
votes
0answers
40 views

How to use Manipulate for protein sequence alignment?

so I have the sequence of a protein from Chain A and Chain B and I want to use manipulate to show what parts of sequence are identical.
1
vote
1answer
53 views

How do I use Solve with conditional equations?

Short version: How do I have Solve handle a system of equations where some of the equations may be conditional? Simplified Problem: I am solving the following system of equations: a * b = 10^-14 b^...
5
votes
1answer
35 views

SparseArray: how to efficiently extract/delete many entries?

This is a follow-up of this question. We have a large $m\!\times\!n$ matrix stored as a SparseArray a and a list of positions pos...
0
votes
1answer
44 views

Is it possible to overwrite a button output?

For example, if I have this basic button Button["Sum", Print[2 + 2]] is it possible to overwrite the same output without creating a new one and have a single 4 ...
3
votes
4answers
177 views

Maximum of determinant of $n\times n$-matrix with elements 0 and 1

Generalizing https://math.stackexchange.com/questions/3265627/largest-value-of-a-third-order-determinant-whose-elements-are-0-or-1 I'd like to propose two related problems (a) find the maximum value ...
2
votes
1answer
33 views

Trouble with gambling function

I am trying to make a function which gives us a 1/7 chance of doubling up, or a 6/7 chance of losing $20. Each time the function runs should be an independent event. I have modeled it as follows: <...
4
votes
1answer
41 views

Variable dimensional integrals

I need to Integrate a function, but let the number of dimensions vary. Integrate[Product[Exp[-( t[[i]] )^2], {i,1,4}], options] ...
2
votes
1answer
27 views

SequenceReplace is incorrectly modifying the list when a pattern partially matches

(Below is a big simplification of my actual use-case which reproduces the problem with SequenceReplace. Please assume my use of ...
2
votes
2answers
122 views

Finding the radius of a circle given that it is tangent to both axes and contains (10, 9)

A circle is tangent to both axes in the 1st quadrant of the xy-plane. If the point (10, 9) is on the circle, what is the circle radius?
0
votes
2answers
21 views

Checking if a system of linear equations admits a positive solution

How can I use Mathematica to check if a system of the form $A x > 0$ admits a solution $x\geq 0$ where $A$ is a $m \times n$ matrix and $x \in \mathbb{R}^n$. All inequalities are to be understood ...
0
votes
0answers
27 views

How to reduce large matrix to a multidimensional matrix?

I have a large matrix $h$ with dimension $N_x N_y\times N_x N_y $. it is related to matrix $a$ by this formula,where $i,i_1=1..N_x$ and $j,j_1=1..N_y$. ...
0
votes
0answers
34 views

How to approach the following differential equation?

I obtained the following, apparently clean-looking differential equation, while solving a problem, but cannot find any efficient way to solve it analytically. The equation is of the form, $$[A - B\cos ...
4
votes
1answer
47 views

What is an example of of idiomatic “typed” WolframScript?

I'd like to make my own "typed function" in WolframScript. Suppose the type we desire is called money, and we'd like to make a function called ...
-1
votes
1answer
39 views

How to specify resolution of a plot?

Suppose I need to plot Sin function: Plot[Sin[x ], {x, -10 , 10 }] Now I need to specify the resolution of the plot. I tried by using list Plot ...
1
vote
1answer
37 views

Plotting points using multiple colors with `ListPlot`

I've got two sets of points, plotted with ListPLot. I would like the second set to have one point of each color specified. I've tried using ...
0
votes
0answers
23 views

Sum over powers of roots of unity gives only partial answer

Mathematica seems to be unable to handle sums over roots of unity. For example, Simplify[Sum[Exp[2 Pi I a b/m], {a, m}], {b, m} \[Element] Integers] yields ...
0
votes
0answers
17 views

Memory management with monitor or an alternative to monitor

I often use Monitor[...] to watch the progress and behavior when batch fitting a lot of spectra. Usually I have no problem with this at all, I typically may fit ...
1
vote
1answer
27 views

How to get time series data from Entity[“Company”,…]?

In my notebook, I have a cell that displays AT&T's revenue for one particular year (the year 2010): ...
1
vote
1answer
27 views

Limit of an integral and hypergeometric function

I want to evaluate the following integral: Integrate[Sin[θ]^(D1 - Nc - 1)/(A Cos[θ] - I ϵ)^(N1 - Nc), {θ, 0, π}, Assumptions -> A > 0 && ϵ > 0] ...
0
votes
1answer
62 views

Numerical solution to approximate the singular integration using collocation method

I am working to solve "numerically" the following integral equation IE: u[x]=f[x]+Integrate[(1/(x-t)^(1/4))*u[t],{t,0,x}]+Integrate[(1/(x-t)^(1/4))*u[t],{t,0,1}] ...
9
votes
3answers
666 views

Check if image has alpha channel

How can I check if an Image has an alpha channel? "What have you tried?" AlphaChannel and ...
0
votes
1answer
23 views

Plot region in between two discrete functions

I am trying to plot the region in between two curves that I only have as discrete data, without plotting the curves corresponding to the data. In principle, I could interpolate the functions and then ...
0
votes
0answers
27 views

Function iteration

I wrote a function in Mathematica that applies certain construction steps on the "incidence matrix" of a graph in order to obtain a new graph with certain properties. These construction steps can be ...
0
votes
0answers
83 views
+50

Aligning plot axes of multiple figures results in different size of the FrameTicks

I defined a new FrameTicksStyle, but their size is changed when more than one figure are stacked vertically. However, the size is accepted when figures are stacked ...
9
votes
3answers
244 views

Stress analysis in axisymmetric bodies

I would like to do some finite element calculations in axisymmetric cylindrical coordinates. I wish to calculate stress in terms of {r,z} coordinates. The radial ...
1
vote
0answers
37 views

Boundary value problem for nonlinear ODE

I am trying to solve the following boundary value problem using mathematica v12: $$ (1-y) (1+(1-y) y q(y) (2+y q(y))) q^{\prime\prime}(y)-q(y)^2 (2-5 y+(2-3 y) y q(y))-2 (1-(1-y) q(y) (1-5 y+y (1-3 y)...
1
vote
0answers
13 views

Inverse fuction of TensorExpand

Is there a way in mathematica to factorize/simplify a dot product? I.e. I have something like a.b + a.c (obviously more complicated expressions) and I would like to factorize terms like ...
0
votes
0answers
14 views

WolframAlpha minimize multivariate function with respect to one variable and other parametrized problems

With WolframAlpha, how can I minimize a function with respect to one variable? For example, how can I get the solution $x^*= argmin_{x} x^2+xy = -y/m$? I always use hopefully sufficiently ...
0
votes
2answers
34 views

Color coding points on spherical plot

I have a matrix with each element having two components. First component is an array of six elements, each of multiple of 1/6 but less than 1. Second component has two elements representing spherical ...
2
votes
1answer
730 views

Solving a nasty partial differential equation

I have a differential equation that I would like to solve numerically in the region $z \in [0,L]$ and $t \in [0,t_{max}]$: $$ \partial_t S(z,t) = f(z)S(z,t) + \int_0^L \text{d} z'g(z,z') S(z',t), $$ ...
3
votes
1answer
94 views

Solving partial differential equation involving Hilbert transform

While solving one research paper published in Physical Review Letters, I came across the following equation and I am unable to solve it. $$\frac{\partial f}{\partial t}−(\mathcal{H}(f)\left(\frac{\...
0
votes
0answers
30 views

FullSimplify does not simplify at all

I have some problems simplifying things with FullSimplify. Suppose a matrix ...
-2
votes
0answers
33 views

How to make panel in order to visualize diffrent color proteins?

I have 3 different plots of proteins and I want to display them, but what should I use, Manipulate, Dynamic Manipulate, etc. In the case for manipulate I also was thinking using viewpoint in order to ...
0
votes
2answers
56 views

Create an array whose index are given by a list (not necesseraly regularly spaced)

I would like to create an array f containing n indices. The label of those indices is stored in a liste of length n, let's call it "list". So I would like to have something like : {f[list[[0]]], f[...
6
votes
2answers
105 views

Visualizing only the chain of a protein and color each residue in Mathematica

Is there a way to visualize in cartoon a single chain of a protein using ProteinData and color the residues by its chemical properties e.g. hydrophobicity, acidic and basic ? The issue here is that I'...
1
vote
1answer
52 views

Mesh quality error with interpolation of table

I am trying to interpolate a table of the following form. {{x1,y1,z1},{x2,y2,z2}...} Where z depends on x and y, and x ranges from 0.01 to 1 in steps of 0.01, ...
6
votes
1answer
60 views

Using URLExecute to login to website

One of my students is doing summer research for a local company to help analyze some of their data. Trouble is, the web interface they provide for downloading the data only allows one to download one ...
0
votes
0answers
36 views

How to generate a table of contents?

This answer is several years old and while the code still works I was wondering if there was any update from the community or Wolfram. The online references still point to AuthorTools which seems to ...

15 30 50 per page