Reputation
31,964
Next tag badge:
99/100 score
20/20 answers
Badges
1 45 108
Newest
 Nice Answer
Impact
~330k people reached

Oct
24
comment Manipulate Solve for initial condition
But this code is not in the Manipulate expression. You should put all control variables dependent code inside Manipulate.
Oct
24
comment Manipulate Solve for initial condition
I do not understand your code at all. You have 2 control variables r and b, yet they do not appear anywhere in the Manipulate expression. Before jumping to using Manipulate, you should first test your code as standalone, on a cell by its own, to make sure it even works. You can enter some values for the parameters. Then when it is working, you can use Manipulate to automate things.
Oct
24
answered How to rearrange CharacteristicPolynomial[ ] terms?
Oct
24
comment Simplifying vector expressions
@TrumanEllis it looks you need another transformation rule. May be post separate question with an example to use for input to duplicate the output and may be someone can then help better.
Oct
23
comment Problem with series expansion and integrate
@rhermans I only studies Series expansion for functions at school. Teacher never mentioned series expansion for integrals. So I do not know. You could be right. I'll ask the teacher tomorrow when I go to school.
Oct
23
comment Problem with series expansion and integrate
The integration does not even do anything. Why even worry about what Series does? What is Series supposed to be when given an un-evaluated integral anyway? Is this even defined somewhere? Series work on functions.
Oct
23
comment Calculate expected value of piece-wise pdf
Just use Plot. I just typed DiscretePlot cause I was looking at example. Once you have Distribution, you can use Mean on it. As in Mean[D0] gives 3/4 There is also expectation, reference.wolfram.com/language/ref/Expectation.html
Oct
23
comment Calculate expected value of piece-wise pdf
hum.. Should not your function be Piecewise[{{1, 0 < x < 1/2 || 1 < x < 3/2}, {0, True}}] ? Otherwise, looks ok. Try it, like this D0 = ProbabilityDistribution[Piecewise[{ {1, 0 < x < 1/2 || 1 < x < 3/2}, {0, True}}], {x, -Infinity, Infinity}]; then you can plot it. DiscretePlot[Evaluate[CDF[D0, x], {x, -10, 10}]], etc... see help for more information.
Oct
23
comment Calculate expected value of piece-wise pdf
This is a function definition. Not PDF. Check how to define own PDF here reference.wolfram.com/language/ref/ProbabilityDistribution.html
Oct
22
answered Simplifying vector expressions
Oct
22
answered Manipulating array
Oct
22
comment Strange integration
which version are you using? on V10.01, I do not get 1/2 (-HarmonicNumber[-I] - HarmonicNumber[I]), but only Recursion depth. btw, doing NIntegrate[...] works and gives -0.396291 + 1.65436*10^-24 I which is the correct numerical value that you show there. screen shot: !Mathematica graphics
Oct
22
answered Replace list of symbols in an expression
Oct
22
answered Conditional combining of nested lists
Oct
22
revised Partial fraction decomposition of $1/(e^x-1)$
typos
Oct
22
answered Partial fraction decomposition of $1/(e^x-1)$
Oct
22
comment Exclude Infinite Value in Table
It works if you add -1. DeleteCases[{1, {2, Infinity}, 3, {4, 1/0}}, Infinity | ComplexInfinity, -1] gives {1, {2}, 3, {4}}
Oct
22
comment Exclude Infinite Value in Table
Is there any way to tell Mathematica to skip Table values based on some rule? how about DeleteCases ? Example: DeleteCases[{1, 2, Infinity, 3, 4}, Infinity] gives {1, 2, 3, 4} or DeleteCases[{1, 2, Infinity, 3, 4, 1/0}, Infinity | ComplexInfinity]
Oct
22
answered NDSolveValue with a multiple variable equation
Oct
21
comment How to find all roots of a complex number
Can also just use Solve[x^4 == 1 - I, x]