0
votes
2answers
75 views

Using StringReplace to make file names

Often I'm making many plots for different values of parameters. Each plot has a nice PlotLabel with superscripts, subscripts and some special characters. I would ...
0
votes
2answers
77 views

Zero division in linear equation solution

I'm trying to transform a vector to another coordinate system with different root vectors. The other root vectors are defined by three points in space that form a plane, and it's a normal vector. ...
5
votes
2answers
74 views

Annotation specifier like :Author: and sectioning like ::Section:: in package code

In packages, there is a special way to make basic formatting and annotation within normal comments. Here is another question related to annotation. Package file headers usually contain information ...
3
votes
1answer
81 views

How use TraditionalForm input in InputField?

Inside a Manipulate, I'd like one of the controls to be an InputField and to allow the input entered to be in traditional form. ...
-1
votes
1answer
78 views

How can I cluster a continuous percentage? [closed]

I've got a table with 3 columns. 1 is descriptive A 1 is a percentage B 1 is a decimal number C I would like to investigate for the clusters (ie. B is high ad C is low, or viceversa). How can I ...
1
vote
2answers
112 views

Solving matrix equation

How can I solve the forward equation S[t]=C+A*S[t+1]*(Inverse((I-B*S(t+1)))*A for t=1 to t=10 and ...
1
vote
1answer
100 views

Plotting less of a sphere

It is a follow-up question from this one. I'll put the code at the end. So far, I have: Notice how nearer $z$ is to $0$, the more transparent the sphere is. I don't want to plot the whole ...
0
votes
3answers
75 views

How to create a general expression for an integer derivative?

I need MMa to return a general expression for the jth derivative wrt v of v^n. This didn't work: ...
0
votes
0answers
25 views

Long time quitting kernel

Sometimes, but not always, when I quit the Mathematica 10 kernel using Evaluation / Quit Kernel, it can take several minutes before the process is completed. Other times, for the same program, it only ...
2
votes
1answer
124 views

RegionPlot3D does not plot “thin” regions?

Basically, I ultimately want to make something like this: However, I am unsure of how to do this in Mathematica. I'm trying to do this via RegionPlot3D, and for ...
0
votes
0answers
84 views

What happened with good old Histogram?

For the sake of demonstration in a class I wanted to use the line: Histogram[Accumulate[RandomReal[{-1, 1}, 100000]], {1}, "Probability"] to get a ...
0
votes
1answer
53 views

Function to Represent Recursive Integral

I'd like to represent the following recursive integral equation to evaluate/graph (for $n\leq3$): $K_{i,n}\left(x\right)=\intop_{x}^{\infty}K_{i,n-1}\left(y\right)dy$ where ...
3
votes
1answer
88 views

How to add own description to BarLegend?

Is there a default-option possibility to add own defined names of the contour-labels in BarLegend? I want to have a string "hot" ...
4
votes
1answer
127 views

Finding and plotting roots with parameter

I have the following function: $$u(x,t)=\sum_{k=1}^\infty\frac{v_0 L}{\lambda_k c \sin\left(\lambda_k\right)}\sin\left(\frac{\lambda_kx}{L}\right)\sin\left(\frac{\lambda_kct}{L}\right)$$ and this ...
2
votes
2answers
186 views

How to set viewpoint Graphics3D to a different default orientation?

I'd like to have a SphericalPlot3D show up with the "z-axis" oriented horizontally by default. For example, in ...
-1
votes
1answer
85 views

amplitude-phase modulation equations solution

I am trying to solve the following equation ...
2
votes
1answer
44 views

PrecedenceForm with Format

I'd like to format the output of certain operators with Infix-style formatting to have lower precedence than Times. Let's say I ...
0
votes
1answer
75 views

Draw filled regions in DateListPlot

How do I draw specifiq filled regions in DateListPlot? I trying to plot something like this: Thanks
0
votes
0answers
33 views

All output in TexForm [duplicate]

In the Preferences -> Evaluation panel, there are only options for StandardForm, TraditionalForm and ...
2
votes
1answer
95 views

Font presentation difference between version 9 and version 10

I am trying to make presentation quality bar charts. As part of my effort, I used the code below. Updated to eliminate font specification. The problem appears to be a rendering difference, not a font ...
2
votes
2answers
279 views

Finding if a point is in a region bounded by a curve and the axes (curve made of discrete points)

Here's a small example this is not the real curve but a simple example I made for this question. Here's the plot of a list with a point A of known coordinates. Now I need to find if the point A ...
1
vote
1answer
83 views

Animate function

...
1
vote
0answers
78 views

Find algorithm or generator formula with automated procedure and pattern recognition

I am trying to find a generator formula for the discriminant of a polynomial and believe it would be an interesting problem for the Mathematica community to know how to automate evaluation of certain ...
1
vote
1answer
170 views

Line integrals over a path defined by a set of points (rather than an analytic formula)

I'm getting inaccurate results when computing (plotting) the value of a function against the length of a line integral, where the path comes from a set of numerically calculated points. (In contrast, ...
0
votes
1answer
152 views

CDF Player 10.0.2 does not launch

I have recently downloaded the new CDF Player 10.0.2. I export a CDF, and create an HTML page, to host the CDF, using the code provided by Mathematica 10.0.2. When I open the HTML page in Chrome ...
0
votes
2answers
55 views

Proper arguments to ListPlot? [closed]

...
0
votes
1answer
68 views

NDSolve printing error message NDSolve::ndode [closed]

Using NDSolve while solving system of ODE's. Here is my try ...
0
votes
1answer
65 views

How to use pattern matching for integral identities?

I have an unknown pdf f[x], and I need to express integrals involving f[x] as expansions of the moments of f[x]. For example: ...
0
votes
2answers
55 views

Solving linear recursions without constant depth in mathematica

Mathematica does not like this recurrence relation. I do not understand why? ...
5
votes
4answers
228 views

How can I get a list of the positions of the running minima in a list?

I want the positions of the (sequential) running minima in a list, that is, the positions of entries that have the minimum value of all the elements in that list, up to and including that entry. For ...
2
votes
2answers
205 views

Diagonal minors of matrix

I need to calculate the minor of a matrix. I am going to use Mathematica example here, ...
3
votes
3answers
176 views

List manipulation: Dropping first or last row or column of a matrix

How do I drop the first/last row or first/last column from a matrix? The general case is answered here but I am new to Mathematica and it the arbitrary case is unnecessarily complex. Suppose I am ...
2
votes
2answers
218 views

How to change the form $A\cos \omega t + B\sin \omega t$ into the form $\sqrt{A^2+B^2}\cos(\omega t-\phi)$ [duplicate]

I'm preparing notes for teaching next week's class in differential equations. My hand calculation solution of $$y''+192y=0, y(0)=1/6, y'(0)=-1$$ is $$y=\frac16\cos 8\sqrt3 t-\frac{\sqrt3}{24}\sin ...
4
votes
4answers
250 views

Iterating over a list, in a functional way

I have learned a lot about functional programming just from messing around in Mathematica, but I've come across a problem that I don't know how to solve in a "functional" way. Any help would be ...
0
votes
1answer
132 views

Use ParametricNDSolve with Plotting

I am attempting to solve a differential equation of the form $$ \frac{dx}{dt}=ax+by \\ \frac{dy}{dt}=cx $$ with parameters $0<a<1$ and $a,b,c \in \mathbb{R}$. I am able to use NDParametric ...
0
votes
0answers
172 views

NDSOlve - 1D wave equation with boundary

I am currently trying to solve the 1D wave equation with Mathematica: $$c^2\frac{\partial u}{\partial x^2}=\frac{\partial u}{\partial t^2}$$ I want to do so for a cantilever with a tip mass: One ...
0
votes
0answers
14 views

How to converrt RGB to YCbCr [duplicate]

While converting rgb to Ycbcr, do we get values as floating point numbers? I would like to have Y, Cb, Cr values as integers. Is it possible?
0
votes
3answers
126 views

How to define a function

How can I define a function which depends on a function of x? Something like this f[u[x]_,u[x]']= u[x]' + a [x] u[x] +b[x] I think I wasn't enaugh clear. If I ...
0
votes
1answer
73 views

Elements inside arrays seem to be strings rather than signed numbers

When I have code like b = Array[Subscript[be, #] &, {3, 1}] b = b /. {Subscript[be, k_] :> Subscript[-be, k] /; k > 1} I am noticing that Mathematica ...
4
votes
3answers
186 views

Replace elements in matrix to make it symmetric using automated procedure

I am generating a matrix using (mat2 = Array[Subscript[a, ##] &, {4, 4}]) // MatrixForm but would like to force Mathematica to make it symmetric. Thereby I ...
7
votes
1answer
95 views

Strange behavior when setting NumericQ of a symbol

It happens both in v9&v10. If you try this a^0 a^0 (1/a)^(3/2) a^0 (1/a)^(5/2) Mathematica returns 1 (1/a)^(3/2) (1/a)^(5/2) It's trivial. ...
1
vote
1answer
122 views

Issues with Arrow and Graphics3D [closed]

I'm trying to plot a simple picture: a plane with a circle in it, and three vectors in the curve. Mathematica keeps saying that the array "has the wrong dimensions for a graphics coordinate list" and ...
9
votes
2answers
167 views

Inconsistent behavior of undocumented Encode->Import->StringToStream->Get on password-locked stream

Let's save a definition. Encode it with password/key and Get it again. We will not use Get ...
11
votes
1answer
132 views

Adding Trace produces error messages

This is very strange. As I was trying to debug this problem, I noticed when I add Trace then I get lots of internal errors generated. This also happens the first ...
4
votes
1answer
76 views

Problem with Simplify, Sqrt, and Set: What's going on?

I am having some trouble getting Mathematica to simplify an expression of the form Sqrt[x]*Sqrt[1/x], where x>0. The problem is that x is assigned to some complicated form by the time Mathematica ...
0
votes
1answer
116 views

Plotting Complex Numbers - Functions of Complex Numbers [duplicate]

So I have to generate a few different plots with z, where z is a complete number... z[x_, y_] := x + y*I F[z_] := (25*Pi*z*I)/(1 + 10*Pi*z*I) First, I need to ...
1
vote
1answer
101 views

How to find and verify relationships between functions?

MMa gave me a complicated result involving Hypergeometric0F1's. It was much less complicated after I discovered this identity: ...
0
votes
1answer
41 views

Size of the box using Manipulate function

I am using the following command: Manipulate[Graphics[Arrow[{{0, 0}, {a Cos[ω t], a Sin[ω t]}}]], {t, 0, 10, 0.1}] In order to display a vector in circular ...
1
vote
1answer
57 views

Problem with converting \frac into mathematica output [duplicate]

Please help me with the following problem: TeXForm[2/3] The Answer is correct: "\frac{2}{3}" I don't understand why ...
1
vote
0answers
116 views

How to find soccer balls in an image? [closed]

I have 10k images and I need automatically remove only soccer balls, excluding other types (volleyballs, baseballs, etc...). I'd like to use computer vision methods of V10 to find their masks and ...

15 30 50 per page