COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register
hanlonr357 (841) 24 Articles, 817 Replies, 841 Points

Since 5/24/2012 10:36:33 AM, hanlonr357 has written 24 articles and participated in 817 conversations.
hanlonr357 signature:
hanlonr357

hanlonr357's articles:
 Items(24) /3 Next >> Last >| Re: User-defined Probability Mass Function #2 0 9 (7/8/2013 3:18:32 AM) comp.soft-sys.math.mathematica Clear[pointDistribution]; pointDistribution /: PDF[ pointDistribution[spt_, prob_], x_] := Piecewise[{#[[1]], Equal[x, #[[2]]]} & /@ Thread[{prob, spt}]]; pointDistribution /: CDF[ p...Bob Re: NDSolve with NIntegrate where Integral is a function of x 0 33 (7/20/2012 7:59:14 AM) comp.soft-sys.math.mathematicaYou did not specify g[x,t] so I could not verify that this will work. You also need to pay closer attention to syntax. h[x_?NumericQ] := Integrate[g[x, t], {t, 0, Infinity}] NDSolve[{y'[x] == f[x]*h[x]...Bob Re: what would cause a symbol not to clear using Clear[name] or Remove[name]? 0 34 (7/9/2012 2:47:29 AM) comp.soft-sys.math.mathematicaHere is an example of one way that can occur. y starts off clear ??y Global`y \$Post is set to define y after any evaluation (\$Post=(y=10;#)&); Now, even clearing y will set it Clear[y] ?...Bob Re: Modifying an entry in array specified by a list of arbitrary length #3 0 42 (7/5/2012 10:17:56 AM) comp.soft-sys.math.mathematicax = Array[a, {4, 3, 5}]; i = {1, 2, 3}; Element to be modified x[[Sequence @@ i]] a[1, 2, 3] Change element x[[Sequence @@ i]] += 1 1 + a[1, 2, 3] Verifying that array was modified x[...Bob Re: how to export to Excel in Mathematica from a Parametricplot command 0 46 (7/4/2012 7:30:30 AM) comp.soft-sys.math.mathematicasol = NDSolve[{ y'[t] == y[t] (x[t] - 1), x'[t] == x[t] (2 - y[t]), x[0] == 1, y[0] == 2.7}, {x, y}, {t, 0, 10}]; plt = ParametricPlot[{x[t], y[t]} /. sol, {t, 0, 10}] points = Cases[pl...Bob Re: how to make a list of rules with 2 other lists composed by different kinds of elements #2 0 27 (7/2/2012 9:24:13 AM) comp.soft-sys.math.mathematicaUse Thread list1 = {1, 2, 3}; list2 = {"file1", "file2", "file3"}; list3 = Thread[list1 -> list2] {1 -> "file1", 2 -> "file2", 3 -> "file3"} Head /@ list3 {Rule, Rule, Rule} Head /@ list3[[...Bob Re: An easier functional way to divide each Column of matrix by a row vector, element-wise? #2 0 38 (6/29/2012 8:52:39 AM) comp.soft-sys.math.mathematica#/v & /@ mat Bob Hanlon On Thu, Jun 28, 2012 at 4:02 AM, Nasser M. Abbasi wrote: > hello; > > I found a better solution. > > (after a strong coffee and staring on it for sometime) > > method(5...Bob Re: Any efficient way to make complete homogeneous symmetric functions in Mathematica? 0 34 (6/11/2012 4:02:30 AM) comp.soft-sys.math.mathematicahomogeneousSymmetricPolynomial[k_Integer, var_List] := Module[{n = Length[var], t}, SeriesCoefficient[Times @@ (1/(1 - var*t)), {t, 0, k}]] /; 0 wrote: > We do have elementary symmetric function...Bob Re: InverseZTransform numerical issue on some expression, version 8.0.4 0 34 (6/8/2012 7:39:25 AM) comp.soft-sys.math.mathematica\$Version 8.0 for Mac OS X x86 (64-bit) (October 5, 2011) On my Mac, I had to truncate even more to get a result sol1=InverseZTransform[ 1/(0.95122942-1.95122942 z+z^2),z,n]// Simplify \[Piecewise]...Bob Re: from a 2d-figure to an interactive 3d model? is it possible with mathematica? #4 0 37 (4/28/2012 9:32:17 AM) comp.soft-sys.math.mathematicaStart simple and add one thing at a time evaluating the results at each step. Refer to the online documentation often until you are much more experienced--I still use the documentation often. Bob Hanlon ...Bob

hanlonr357's replies:
 Items(38) /4 Next >> Last >| Relational operators on intervals: bug? 14 23 (11/11/2012 8:59:15 PM) comp.soft-sys.math.mathematicaHi there, I would like to know if someone understands the behavior of relational operators on intervals reported below. I, personally, consider items 1 and 2 below bugs, and 3, a conceptual flaw. 1. Compari... Euclidean distance of all pairwise combinations (redundants) 6 44 (11/14/2012 6:33:41 AM) comp.soft-sys.math.mathematicaI have been having a tough time trying to figure out how to include all red undant pairwise combinations in my results for the euclidean distance between a set of points. I have a set of points with xy coordina...jessepisel (3) Manually tell Mathematica how to evaluate integrals 5 31 (11/25/2012 10:07:55 AM) comp.soft-sys.math.mathematicaHi all, I have a question about Mathematica's abilities to solve integrals. There seem to be cases where an antiderivative is explicitly known yet Mathematica fails to compute the integral. One example of th...e.schlemm1 (9) Terrible unit trouble in Mathematic 9 7 41 (12/18/2012 7:35:32 AM) comp.soft-sys.math.mathematicaI continue to receive "Unable to interpret unit specification m/s" (for example, but almost anything I attempt returns this message) with input: UnitConvert[55 mi/h,"m/s"] or UnitConvert[55 mi/h,m/s] or any ot...tio540s1 (4) Integrate bug in v 9.0.0 3 20 (2/2/2013 6:15:44 AM) comp.soft-sys.math.mathematicaIn version 9.0.0 the following integral is reported as divergent: In[71]:= Integrate[x^2/(x^2 - x0^2), {x, x1, x2}, Assumptions -> x0 > x2 > x1 >= 0] During evaluation of In[71]:= Integrate::idiv: Integ...lehin.p (233) Re: Mathematica and Lisp #5 13 22 (3/2/2013 8:44:12 AM) comp.soft-sys.math.mathematicaOn 2/27/13 at 11:43 PM, fateman@cs.berkeley.edu (Richard Fateman) wrote: >On 2/27/2013 12:04 AM, Bill Rowe wrote: >>Easier to learn? >I'm not even arguing that. I'm saying that EF as it exists is har...readnews134 (1249) A question about numerically solving differential equations 7 14 (3/26/2013 8:05:23 AM) comp.soft-sys.math.mathematicaHi, I am using Mathematica to numercially solve the following equations: 2 D[f0[r], r]/r + D[f0[r], r, r] == -2 A f1[r]/r^4 + 2 A D[f1[r], r]/r^3 -2 f1[r]/r^2 + 2 D[f1[r], r]/r + D[f1[r], r, r] == 2 A D...zhaoyue.hep (1) Russian Peasant Multiplication / was question on how to do this 6 11 (6/29/2013 8:47:03 AM) comp.soft-sys.math.mathematicaDave -- 1. You should try to come up with a useful subject line in the future. 2. It is called Russian Peasant Multiplication (which you may find on Google). 3. There is no reason to believe that a proced...fateman2 (359) keep special functions unexpanded 5 12 (7/20/2013 9:56:38 AM) comp.soft-sys.math.mathematicaI am trying to create a list of ChebyshevT[n,x] polynomials of different orders to use as basis functions in a fitting routine. I want to keep the list in the form that explicitly shows the order number. For ex...takacs (5) parametric plot and filling 5 26 (8/20/2013 11:36:21 AM) comp.soft-sys.math.mathematica Dear group: DoesParametricPlot admit the Filling option? Seems it not? How then to perform it? Lokk at the following simple example: ParametricPlot[{{2 t,-t^2},{6+ 2 t,-t^2}}, {t,-2,2},Axes->{True,Fals...fgutiers2002 (85)