Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the form and content of output returned by Mathematica for a given input or function application. This can include specific differences produced by older versions of Mathematica.
8
votes
How to suppress Sign[...] in output
There is no point in suppressing it without changing the value of the expression.
You can transform it into a Piecewise expression with PiecewiseExpand. For example:
PiecewiseExpand[Sign[a^2 - 2],a∈Re …
3
votes
Accepted
Computing the variance of a PDF
Change [_t] to [t_], pi to Pi
$Assumptions = {d >= 1, Element[d, Integers], Element[x, Vectors[d]]};
unitSphereVolume = Pi^(d/2)/Gamma[d/2 + 1];
epan[t_] =
Piecewise[{{(d + 2)/(2*unitSphereVolume …
1
vote
Try to find the number of points near the black color ؟
Indeed the image is RGB
Import["https://i.sstatic.net/QPKeW.jpg", "ColorSpace"]
RGBColor
This gives the positions of the pixels with RGB values from {0,0,0} to {10,10,10}. Change the Round arg …
1
vote
NSolve gives {{ x -> #}}, How do I make x = #; I need to use the x value again later
χ /. First[NSolve[SetV == #/(Cpf (1 - χ)), χ]] & /@ demand
or equivalently
χ /. First@Solve[SetV == dem/(Cpf (1 -χ)), χ]
(-dem + Cpf SetV)/(Cpf SetV)
and now
(-# + Cpf SetV)/(Cpf SetV)& …
6
votes
Accepted
Monitor only every $n$-th step in NDSolve
If only you need to reduce the number of printed lines, this Prints once every 10 instances.
n = 1;
NDSolve[
{y'[x] == y[x], y[0] == 1}
, y
, {x, 0, 5}
, StepMonitor :> If[
Mod[++n, 10] = …