<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-16825</id>
	<title>Nabble - MathGroup</title>
	<updated>2008-10-07T04:07:13Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/MathGroup-f16825.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/MathGroup-f16825.html" />
	<subtitle type="html">&lt;a href=&quot;http://forums.wolfram.com/mathgroup/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;MathGroup&lt;/a&gt;&amp;nbsp;is a moderated email list and internet newsgroup. The email list formed in the late 1980s shortly after the introduction of Mathematica.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19856258</id>
	<title>[mg92601] Re: Real and Complex Roots presented in a single plot</title>
	<published>2008-10-07T04:07:13Z</published>
	<updated>2008-10-07T04:07:13Z</updated>
	<author>
		<name>Narasimham</name>
	</author>
	<content type="html">On Sep 19, 2:15 pm, Narasimham &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856258&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mathm...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; On Sep 12, 2:27 pm, magma &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856258&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mader...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We can also recognize and see the real parts of al=
&lt;br&gt;l =
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; complex roots of z where the curve is nearest to x -axis at &amp;nbsp;{1.4,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 4.2, 6.6, 9.6, 12.3, 15.3, 17.7}. They are near to x-values where the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; local maxima/minima occur.But we cannot 'see' their complex parts, as
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; they need to be computed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Please note that your claim that the real part of the complex roots is
&lt;br&gt;&amp;gt; &amp;gt; found at the local minima of the given function as the indipendent
&lt;br&gt;&amp;gt; &amp;gt; variable moves on the real axis, is not valid in general and wrong in
&lt;br&gt;&amp;gt; &amp;gt; this particular instance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; For example in the interval {1,2} there are 2 local extrema found
&lt;br&gt;&amp;gt; &amp;gt; using the derivative:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; f[z_] := 1.3 Sin[1.7 z] + 0.6 Sin[4 z]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The derivative:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In[43]:= fp[z_] := D[f[z], z]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In[44]:= fp[z]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Out[44]= 2.21 Cos[1.7 z] + 2.4 Cos[4 z]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In[73]:= extrema = z /. FindRoot[fp[z], {z, #}] &amp; /@ {1.4, 1.6}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Out[73]= {1.33751, 1.69029}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The first is the local minimum (see the plot).
&lt;br&gt;&amp;gt; &amp;gt; But the complex roots in interval {1,2} are
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 1.27946 + 0.374308 I and 1.27946 - 0.374308 I
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The real part is 1.27946, while the minimum was at 1.33751
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (I do not have Presentations). My point is that 1.33751 is
&lt;br&gt;&amp;gt; sufficiently near to and &amp;nbsp;corresponding to the root place holder
&lt;br&gt;&amp;gt; 1.27946 &amp;nbsp;so that succesive tangents drawn in complex Newton-Raphson
&lt;br&gt;&amp;gt; procedure the roots would not settle anywhere else.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Narasimham
&lt;/div&gt;&lt;br&gt;The point/ claim &amp;nbsp;in a simple case is that e.g. in &amp;nbsp;y = (x - x1)^2 +
&lt;br&gt;a^2 there is a min at x = x1 and a complex root there with real part
&lt;br&gt;x1, the full root being &amp;nbsp;x1 (+/-) a *I .
&lt;br&gt;&lt;br&gt;Narasimham
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92601--Re%3A-Real-and-Complex-Roots-presented-in-a-single-plot-tp19856258p19856258.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856207</id>
	<title>[mg92600] Re: Axis in two scales</title>
	<published>2008-10-07T04:07:02Z</published>
	<updated>2008-10-07T04:07:02Z</updated>
	<author>
		<name>Mark Westwood</name>
	</author>
	<content type="html">Hi Nacho
&lt;br&gt;&lt;br&gt;You could certainly draw the graphic you want if you spend a lot of
&lt;br&gt;time building it from scratch with graphics primitives -- I suggest
&lt;br&gt;you start by drawing the x-axis you want with Lines.You might be able
&lt;br&gt;to get close to what you want by experimenting with GraphicsGrid. &amp;nbsp;In
&lt;br&gt;either case you risk creating a graphic with a misleading x - axis, so
&lt;br&gt;don' t forget to put some indication of the break of scale at x ==
&lt;br&gt;0.5.
&lt;br&gt;&lt;br&gt;Or, you could use ListLogLinearPlot[t] and get close to what you are
&lt;br&gt;asking for with no fuss or tricky programming, and get on with your
&lt;br&gt;work.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Mark Westwood
&lt;br&gt;&lt;br&gt;On Oct 6, 9:13 am, Nacho &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856207&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ncc1701...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92600--Re%3A-Axis-in-two-scales-tp19856207p19856207.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856463</id>
	<title>[mg92599] Re: integration</title>
	<published>2008-10-07T04:06:51Z</published>
	<updated>2008-10-07T04:06:51Z</updated>
	<author>
		<name>Alexei Boulbitch</name>
	</author>
	<content type="html">Dear Experts,
&lt;br&gt;I have been trying to simplify(integrate) the following function, but
&lt;br&gt;M6 seems to give a complex answer which i cann't understand.. please
&lt;br&gt;help.
&lt;br&gt;&lt;br&gt;x[s_]=\!\(
&lt;br&gt;\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(s\)]\(Cos[
&lt;br&gt;\*FractionBox[\(r\ t\ \((\(-\[Kappa]0\) + \[Kappa]1 + r\ \[Kappa]1)\)
&lt;br&gt;+ \((1 + r)\)\ S\ \((\[Kappa]0 - \[Kappa]1)\)\ \((\(-Log[S]\) + Log[S
&lt;br&gt;+ r\ t])\)\),
&lt;br&gt;SuperscriptBox[\(r\), \(2\)]]] \[DifferentialD]t\)\)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;RG
&lt;br&gt;&lt;br&gt;Hi, RG,
&lt;br&gt;your problem seems to be in Mathematics, rather than in Mathematica. The integral you need (as it is now) is too cumbersome. 
&lt;br&gt;Make the integrand simpler by hiding and simplifying your notations, and the result will become more understandable. 
&lt;br&gt;For example, below is your integral along with the result in which I denoted some terms by a, b and c to make it shorter:
&lt;br&gt;In[2]:= \!\(
&lt;br&gt;\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(s\)]\(Cos[\ 
&lt;br&gt;&amp;nbsp; &amp;nbsp;t\ a + b + c*Log[S + r\ t]] \[DifferentialD]t\)\)
&lt;br&gt;&lt;br&gt;Out[2]= If[(Re[S/(r s)] &amp;gt;= 0 &amp;&amp; S/(r s) != 0) || Re[S/(r s)] &amp;lt;= -1 || 
&lt;br&gt;&amp;nbsp; Im[S/(r s)] != 0, -(1/(2 a))
&lt;br&gt;&amp;nbsp; &amp;nbsp;S^(-\[ImaginaryI] c) (-((\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; r))^(-\[ImaginaryI] c) (S^(2 \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gamma[1 + \[ImaginaryI] c, -((\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r)] (-\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r]) + ((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a^2 S^2)/r^2)^(\[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gamma[1 - \[ImaginaryI] c, (\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r] (\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r])) + (1/(
&lt;br&gt;&amp;nbsp; 2 a))(r s + S)^(-\[ImaginaryI] c) (-((\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;r))^(-\[ImaginaryI] c) ((r s + S)^(2 \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gamma[1 + \[ImaginaryI] c, -((\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r)] (-\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r]) + ((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a^2 (r s + S)^2)/r^2)^(\[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gamma[1 - \[ImaginaryI] c, (\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r] (\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r])), 
&lt;br&gt;&amp;nbsp;Integrate[Cos[b + a t + c Log[t r + S]], {t, 0, s}, 
&lt;br&gt;&amp;nbsp; Assumptions -&amp;gt; ! ((Re[S/(r s)] &amp;gt;= 0 &amp;&amp; S/(r s) != 0) || 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Re[S/(r s)] &amp;lt;= -1 || Im[S/(r s)] != 0)]]
&lt;br&gt;&lt;br&gt;&lt;br&gt;This is your result after simplification:
&lt;br&gt;&lt;br&gt;In[3]:= -(1/(2 a))
&lt;br&gt;&amp;nbsp; &amp;nbsp;S^(-\[ImaginaryI] c) (-((\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; r))^(-\[ImaginaryI] c) (S^(2 \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gamma[1 + \[ImaginaryI] c, -((\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r)] (-\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r]) + ((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a^2 S^2)/r^2)^(\[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gamma[1 - \[ImaginaryI] c, (\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r] (\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r])) + 
&lt;br&gt;&amp;nbsp; 1/(2 a)(r s + S)^(-\[ImaginaryI] c) (-((\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;r))^(-\[ImaginaryI] c) ((r s + S)^(2 \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gamma[1 + \[ImaginaryI] c, -((\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r)] (-\[ImaginaryI] Cos[b - (a S)/r] + Sin[b - (a S)/r]) + ((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a^2 (r s + S)^2)/r^2)^(\[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gamma[1 - \[ImaginaryI] c, (\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r] (\[ImaginaryI] Cos[b - (a S)/r] + 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sin[b - (a S)/r])) // FullSimplify
&lt;br&gt;&lt;br&gt;Out[3]= (1/(2 r))\[ExponentialE]^(-((\[ImaginaryI] (b r + a S))/
&lt;br&gt;&amp;nbsp; r)) (\[ExponentialE]^(2 \[ImaginaryI] b) S^(1 + \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ExpIntegralE[-\[ImaginaryI] c, -((\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; r)] - \[ExponentialE]^(2 \[ImaginaryI] b) (r s + S)^(
&lt;br&gt;&amp;nbsp; &amp;nbsp; 1 + \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ExpIntegralE[-\[ImaginaryI] c, -((\[ImaginaryI] a (r s + S))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; r)] + \[ExponentialE]^((2 \[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; r) (S^(1 - \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ExpIntegralE[\[ImaginaryI] c, (\[ImaginaryI] a S)/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r] - (r s + S)^(1 - \[ImaginaryI] c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ExpIntegralE[\[ImaginaryI] c, (\[ImaginaryI] a (r s + S))/r]))
&lt;br&gt;&lt;br&gt;It is already comprehensible. Probably you may go still further by checking properties of the integral exponents. 
&lt;br&gt;Have a look into the book: Abramowitz, M. &amp; Stegun, I. A. Handbook of Mathematical Functions with formulas, 
&lt;br&gt;graphs and mathematical tables. (National Bureau of Standards, 1964). Another way I would go is to try to transform it first, 
&lt;br&gt;and to integrate afterwards. 
&lt;br&gt;&lt;br&gt;Success, Alexei
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Alexei Boulbitch, Dr., Habil.
&lt;br&gt;Senior Scientist
&lt;br&gt;&lt;br&gt;IEE S.A.
&lt;br&gt;ZAE Weiergewan
&lt;br&gt;11, rue Edmond Reuter
&lt;br&gt;L-5326 Contern
&lt;br&gt;Luxembourg
&lt;br&gt;&lt;br&gt;Phone: +352 2454 2566
&lt;br&gt;Fax: &amp;nbsp; +352 2454 3566
&lt;br&gt;&lt;br&gt;Website: www.iee.lu
&lt;br&gt;&lt;br&gt;This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92599--Re%3A-integration-tp19856463p19856463.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856035</id>
	<title>[mg92598] Re: NDSolve and error</title>
	<published>2008-10-07T04:06:41Z</published>
	<updated>2008-10-07T04:06:41Z</updated>
	<author>
		<name>dodatki</name>
	</author>
	<content type="html">Hello!
&lt;br&gt;Thanks for all your tips. It turned out that was my silly mistake
&lt;br&gt;(should be y[x], not y[t]) but sometimes such mistakes are the most
&lt;br&gt;difficult to find.
&lt;br&gt;Best regards
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92598--Re%3A-NDSolve-and-error-tp19856035p19856035.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856450</id>
	<title>[mg92597] Re: [mg92575] Re: Finding the optimum by repeteadly zooming on the solution space (or something like that)</title>
	<published>2008-10-07T04:06:30Z</published>
	<updated>2008-10-07T04:06:30Z</updated>
	<author>
		<name>Mauricio Esteban Cuak</name>
	</author>
	<content type="html">I appreciate both your help!
&lt;br&gt;I was trying it the other way because I'm more interested in the speed of
&lt;br&gt;the solution than in the precision. Ultimately, what I need to do is to find
&lt;br&gt;the optimum &amp;quot;a&amp;quot; for at least thousands of values of r.
&lt;br&gt;Say, for a couple of values:
&lt;br&gt;&lt;br&gt;Table[NMaximize[{obj, cpoAg1 == 0 &amp;&amp; cpoAg2 == 0 &amp;&amp; x &amp;gt; 0.1 &amp;&amp; y &amp;gt; 0.1}, {a,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; x, y}], {r, 0.4, 1, 0.2}]]
&lt;br&gt;&lt;br&gt;&lt;br&gt;It seems that my approach doesn't improve the speed for most values of r, so
&lt;br&gt;I'll try your suggestions.
&lt;br&gt;&lt;br&gt;If someone can suggest me a way of speeding things up, I'd really appreciate
&lt;br&gt;it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;cd
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2008/10/6 Bill Rowe &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856450&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;readnews@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 10/5/08 at 6:05 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856450&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cuak2000@...&lt;/a&gt; (Mauricio Esteban Cuak)
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;Hello everyone.I know somebody has probably writ mathematica code on
&lt;br&gt;&amp;gt; &amp;gt;this problem. A general answer would probably benefit more people,
&lt;br&gt;&amp;gt; &amp;gt;but I'll do the specific example, 'cause I'm not sure how to explain
&lt;br&gt;&amp;gt; &amp;gt;it in another way.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;I have these restrictions:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;cpoAg1= ( -x + (70*a*(x^0.4 + y^0.4)^0.75)/x^0.6);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;(*and*)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;cpoAg2= ((70*(1 - a)*(x^0.4 + y^0.4)^0.75)/y^0.6 - 2*y);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;(* And I need to find the &amp;quot;a&amp;quot; that will maximise this following
&lt;br&gt;&amp;gt; &amp;gt;function. I don't need and exact solution, but something that is
&lt;br&gt;&amp;gt; &amp;gt;sufficiently near *)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;obj = &amp;nbsp;-x^2/2 + 100*(x^0.4 + y^0.4)^1.75 - y^2;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;(* &amp;quot;A&amp;quot; goes between 0 and 1 so I discretise to obtain the {x,y} that
&lt;br&gt;&amp;gt; &amp;gt;maximise every &amp;quot;a&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;the Table command gives me the list of rules which I can replace on
&lt;br&gt;&amp;gt; &amp;gt;&amp;quot;obj&amp;quot; later to find the maximum. No problem here*)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;rules = Table[
&lt;br&gt;&amp;gt; &amp;gt;FindRoot[{cpoAg1 == 0, cpoAg2 == 0}, {{x, 0.1}, {y, 0.1}}], {a, 0.=
&lt;br&gt;&amp;gt; 1,
&lt;br&gt;&amp;gt; &amp;gt;1, 0.1}
&lt;br&gt;&amp;gt; &amp;gt;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;(*the maximum is found with this following function *)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;Max[Thread[ReplaceAll[obj, rules]]];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;So far so good...I could discretise &amp;quot;a&amp;quot; as thinly as I want, but I
&lt;br&gt;&amp;gt; &amp;gt;can't afford the luxury of being that inneficient, 'cause I've got
&lt;br&gt;&amp;gt; &amp;gt;to do other things later with this part of the program.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't understand why you would take this approach. Why not use
&lt;br&gt;&amp;gt; the built-in function NMaximize, That is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In[20]:= NMaximize[{obj,
&lt;br&gt;&amp;gt; &amp;nbsp; cpoAg1 == 0 &amp;&amp; cpoAg2 == 0 &amp;&amp; x &amp;gt; 0.1 &amp;&amp; y &amp;gt; 0.1}, {a, x, y}]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Out[20]= {2084.72,{a-&amp;gt;0.527688,x-&amp;gt;22.6727,y-&amp;gt;13.7173}}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Por favor eviten enviarme archivos adjuntos de Word o Powerpoint (
&lt;br&gt;&lt;a href=&quot;http://www.gnu.org/philosophy/no-word-attachments.es.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/philosophy/no-word-attachments.es.html&lt;/a&gt;&amp;nbsp;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92575--Re%3A-Finding-the-optimum-by-repeteadly-zooming-on-the-solution-space-%28or-something-like-that%29-tp19834191p19856450.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856127</id>
	<title>[mg92596] Re: Axis in two scales</title>
	<published>2008-10-07T04:06:19Z</published>
	<updated>2008-10-07T04:06:19Z</updated>
	<author>
		<name>Jean-Marc Gulliet</name>
	</author>
	<content type="html">Nacho wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;/div&gt;&lt;br&gt;Not exactly a piecewise axis but the function *ListLogLinearPlot* should 
&lt;br&gt;produce something close enough to what you have in mind.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ListPlot[t]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ListLogLinearPlot[t]
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;-- Jean-Marc
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92596--Re%3A-Axis-in-two-scales-tp19856127p19856127.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856454</id>
	<title>[mg92595] Re: an interesting problem of supplying boundary condition for a</title>
	<published>2008-10-07T04:06:08Z</published>
	<updated>2008-10-07T04:06:08Z</updated>
	<author>
		<name>Jens-Peer Kuska</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;a) there is no derivative with respect of t, and the variable
&lt;br&gt;&amp;nbsp; &amp;nbsp; is useless
&lt;br&gt;b) Mathematica can't solve hyperbolic equations
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; &amp;nbsp;Jens
&lt;br&gt;&lt;br&gt;pratip wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt; Down is the equation system
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jc = -\[Rho] Subscript[\[GothicCapitalD], 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;k] (D[\[Omega][x, y, t], x] + D[\[Omega][x, y, t], y]) - 
&lt;br&gt;&amp;gt; &amp;nbsp; Subscript[\[GothicCapitalD], 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;k] (D[Log[T[x, y, t]], x] + D[Log[T[x, y, t]], y]);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ContEq = D[u[x, y, t], x] + D[u[x, y, t], y] == 0;
&lt;br&gt;&amp;gt; MomentumEq = \[Rho] (D[u[x, y, t]^2, x] + D[u[x, y, t]^2, y]) == 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;D[(\[Mu] (D[u[x, y, t], x] + D[u[x, y, t], y]) - 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2/3 \[Mu] (D[u[x, y, t], x] + D[u[x, y, t], y]) ), x] + 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; D[(\[Mu] (D[u[x, y, t], x] + D[u[x, y, t], y]) - 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2/3 \[Mu] (D[u[x, y, t], x] + D[u[x, y, t], y]) ), y] - 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; D[P[x, y, t], x] + D[P[x, y, t], y];
&lt;br&gt;&amp;gt; TranportEq = \[Rho] \[Omega][x, y, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; t] + \[Rho] (D[\[Omega][x, y, t] u[x, y, t], x] + 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D[\[Omega][x, y, t] u[x, y, t], y]) == D[Jc, x] + D[Jc, y];
&lt;br&gt;&amp;gt; EnergyEq = 
&lt;br&gt;&amp;gt; &amp;nbsp; Subscript[c, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; p] (D[(\[Rho] u[x, y, t] T[x, y, t]), x] + 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; D[(\[Rho] u[x, y, t] T[x, y, t]), y]) == 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;D[(\[Lambda] (D[T[x, y, t], x] + D[T[x, y, t], y])), x] + 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; D[(\[Lambda] (D[T[x, y, t], x] + D[T[x, y, t], y])), y];
&lt;br&gt;&amp;gt; {ContEq, MomentumEq, TranportEq, EnergyEq} // 
&lt;br&gt;&amp;gt; &amp;nbsp; FullSimplify // TableForm
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now we need a boundary condition that Mathematica can handle. I have freedom to choose any initial values for the unknowns. For this kind of equation I don't know what type of BC I should take. &amp;nbsp;I just took
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; BC = {u[x, y, 0] == x + y, u[0, y, t] == u[1, y, t], 
&lt;br&gt;&amp;gt; &amp;nbsp; u[x, 0, t] == u[x, 1, t], P[x, y, 0] == x, P[0, y, t] == P[1, y, t],
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;P[x, 0, t] == P[x, 1, t], T[x, y, 0] == 2 y + 1, 
&lt;br&gt;&amp;gt; &amp;nbsp; T[0, y, t] == T[1, y, t], 
&lt;br&gt;&amp;gt; &amp;nbsp; T[x, 0, t] == T[x, 1, t], \[Omega][x, y, 0] == 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;x - y, \[Omega][0, y, t] == \[Omega][1, y, t], \[Omega][x, 0, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; t] == \[Omega][x, 1, t]}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I Finally insert values to the constants in the PDE so that I can call NDSolve.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Eq = {ContEq, MomentumEq, TranportEq, EnergyEq} /. \[Lambda] -&amp;gt; .1 /. 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Subscript[c, p] -&amp;gt; 1.2 /. \[Rho] -&amp;gt; .01 /. \[Mu] -&amp;gt; 1 /. 
&lt;br&gt;&amp;gt; &amp;nbsp; Subscript[\[GothicCapitalD], k] -&amp;gt; 1;
&lt;br&gt;&amp;gt; EQN = Join[Eq, BC]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To solve the PDE I call
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sol = NDSolve[
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;EQN, {u, P, T, \[Omega]}, {x, 0, 1}, {y, 0, 1}, {t, 0, 3}, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Method -&amp;gt; {&amp;quot;MethodOfLines&amp;quot;, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;SpatialDiscretization&amp;quot; -&amp;gt; {&amp;quot;TensorProductGrid&amp;quot;}}] // Timing
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And I see the following error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *****************
&lt;br&gt;&amp;gt; *****************
&lt;br&gt;&amp;gt; NDSolve::pdord: Some of the functions have zero differential order so \
&lt;br&gt;&amp;gt; the equations will be solved as a system of differential-algebraic \
&lt;br&gt;&amp;gt; equations. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NDSolve::mxsst: Using maximum number of grid points 100 allowed by \
&lt;br&gt;&amp;gt; the MaxPoints or MinStepSize options for independent variable x. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NDSolve::mxsst: Using maximum number of grid points 100 allowed by \
&lt;br&gt;&amp;gt; the MaxPoints or MinStepSize options for independent variable y. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NDSolve::mxsst: Using maximum number of grid points 100 allowed by \
&lt;br&gt;&amp;gt; the MaxPoints or MinStepSize options for independent variable x. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; General::stop: Further output of NDSolve::mxsst will be suppressed \
&lt;br&gt;&amp;gt; during this calculation. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NDSolve::ibcinc: Warning: Boundary and initial conditions are \
&lt;br&gt;&amp;gt; inconsistent. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NDSolve::ivcon: The given initial conditions were not consistent with \
&lt;br&gt;&amp;gt; the differential-algebraic equations. &amp;nbsp;NDSolve will attempt to \
&lt;br&gt;&amp;gt; correct the values. &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; *****************
&lt;br&gt;&amp;gt; *****************
&lt;br&gt;&amp;gt; It runs for long and finally tells LinearSolve out of memory.
&lt;br&gt;&amp;gt; I hope people with your expertise can give me some insight. You can take full freedom to define BC as you wish. We need just a solution. I am mainly interested to find a class of BC that makes the PDE solvable with Mathematica.
&lt;br&gt;&amp;gt; I hope for some prompt reply.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92595--Re%3A-an-interesting-problem-of-supplying-boundary-condition-for-a-tp19856454p19856454.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856104</id>
	<title>[mg92594] Re: Axis in two scales</title>
	<published>2008-10-07T04:05:58Z</published>
	<updated>2008-10-07T04:05:58Z</updated>
	<author>
		<name>Jens-Peer Kuska</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&lt;br&gt;foo[x_?NumericQ] := If[x &amp;lt; .5, Sin[100*x], Sin[x]]
&lt;br&gt;&lt;br&gt;GraphicsRow[
&lt;br&gt;&amp;nbsp; {Plot[foo[x], {x, 0, 0.5}],
&lt;br&gt;&amp;nbsp; &amp;nbsp;Plot[foo[x], {x, 0.5, 5}, Axes -&amp;gt; {True, False}]},
&lt;br&gt;&amp;nbsp; Spacings -&amp;gt; {-10.0, 0}]
&lt;br&gt;&lt;br&gt;??
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; &amp;nbsp;Jens
&lt;br&gt;&lt;br&gt;Nacho wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92594--Re%3A-Axis-in-two-scales-tp19856104p19856104.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856062</id>
	<title>[mg92593] Re: Workbench complains about an invalid LinkObject number</title>
	<published>2008-10-07T04:05:47Z</published>
	<updated>2008-10-07T04:05:47Z</updated>
	<author>
		<name>Chris Degnen-2</name>
	</author>
	<content type="html">I get that too, but it works ok.
&lt;br&gt;&lt;br&gt;LinkObject::linkn: Argument LinkObject[, 10, 10] in
&lt;br&gt;LinkWrite[LinkObject[, 10, 10], InputNamePacket[In[8]:= ], True] has an
&lt;br&gt;invalid LinkObject number; the link may be closed.
&lt;br&gt;&lt;br&gt;Barry Wardell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm using Workbench version 1.1 on both Linux and Mac with Mathematica
&lt;br&gt;&amp;gt; 6. When I try to run a notebook from within Workbench, the console
&lt;br&gt;&amp;gt; reports the error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; LinkObject::linkn: Argument LinkObject[, 8, 8] in
&lt;br&gt;&amp;gt; LinkWrite[LinkObject[, 8, 8], InputNamePacket[In[5]:= ], True] has an
&lt;br&gt;&amp;gt; invalid LinkObject number; the link may be closed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this a problem I should worry about, or can I safely ignore it. I
&lt;br&gt;&amp;gt; haven't noticed any problems and the notebook seems to open and work
&lt;br&gt;&amp;gt; fine, but just wanted to check in case I missed something.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Barry Wardell
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92593--Re%3A-Workbench-complains-about-an-invalid-LinkObject-number-tp19856062p19856062.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856298</id>
	<title>[mg92592] Re: Axis in two scales</title>
	<published>2008-10-07T04:05:36Z</published>
	<updated>2008-10-07T04:05:36Z</updated>
	<author>
		<name>Szabolcs Horvát</name>
	</author>
	<content type="html">Nacho wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;You can use custom tick marks, take a look at Ticks and FrameTicks.
&lt;br&gt;&lt;br&gt;Here's a way to do it:
&lt;br&gt;&lt;br&gt;First we define a function to transform x coordinates:
&lt;br&gt;&lt;br&gt;trafo = \[Piecewise] {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{#, # &amp;lt;= 0.5},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{Rescale[#, {0.5, 5}, {0.5, 1}], # &amp;gt; 0.5}
&lt;br&gt;&amp;nbsp; &amp;nbsp; } &amp;
&lt;br&gt;&lt;br&gt;In our case this is just a piecewise linear rescaling.
&lt;br&gt;&lt;br&gt;Then apply this function to x coordinates and to the tick positions that 
&lt;br&gt;we wish to show:
&lt;br&gt;&lt;br&gt;ListPlot[
&lt;br&gt;&amp;nbsp; {trafo[#1], #2} &amp; @@@ t,
&lt;br&gt;&amp;nbsp; Ticks -&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; {{trafo[#], #} &amp; /@ Join[Range[0, 0.5, 0.1], Range[1, 5]],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Automatic}
&lt;br&gt;]
&lt;br&gt;&lt;br&gt;The advantage of this approach is that it is easily generalized: we 
&lt;br&gt;could have used trafo = #^(1/3) &amp; for a fancy non-linear scaling, or 
&lt;br&gt;just trafo = Log to mimic ListLogLinearPlot (better not try to put a 
&lt;br&gt;tick mark at 0 in this case).
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92592--Re%3A-Axis-in-two-scales-tp19856298p19856298.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856128</id>
	<title>[mg92591] Re: [mg92569] Axis in two scales</title>
	<published>2008-10-07T04:05:25Z</published>
	<updated>2008-10-07T04:05:25Z</updated>
	<author>
		<name>Bob Hanlon</name>
	</author>
	<content type="html">t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&lt;br&gt;t1 = Select[t, First[#] &amp;lt; 0.5 &amp;];
&lt;br&gt;t2 = Complement[t, t1];
&lt;br&gt;&lt;br&gt;Grid[{{
&lt;br&gt;&amp;nbsp; &amp;nbsp;ListLinePlot[t1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; ImageSize -&amp;gt; 250,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Axes -&amp;gt; {True, False},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Frame -&amp;gt; {True, True, True, False},
&lt;br&gt;&amp;nbsp; &amp;nbsp; PlotRange -&amp;gt; {{-0.01, 0.5}, {-1.05, 1.05}},
&lt;br&gt;&amp;nbsp; &amp;nbsp; PlotStyle -&amp;gt; Blue],
&lt;br&gt;&amp;nbsp; &amp;nbsp;ListLinePlot[t2,
&lt;br&gt;&amp;nbsp; &amp;nbsp; ImageSize -&amp;gt; 220,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Axes -&amp;gt; {True, False},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Frame -&amp;gt; {True, False, True, True},
&lt;br&gt;&amp;nbsp; &amp;nbsp; PlotRange -&amp;gt; {{0.5, 5.1}, {-1.05, 1.05}},
&lt;br&gt;&amp;nbsp; &amp;nbsp; PlotStyle -&amp;gt; Directive[Thick, Magenta]]}},
&lt;br&gt;&amp;nbsp;Spacings -&amp;gt; -0.25]
&lt;br&gt;&lt;br&gt;&lt;br&gt;Bob Hanlon
&lt;br&gt;&lt;br&gt;---- Nacho &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856128&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ncc1701zzz@...&lt;/a&gt;&amp;gt; wrote: 
&lt;br&gt;&lt;br&gt;=============
&lt;br&gt;Hello everyone.
&lt;br&gt;&lt;br&gt;I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;problem is that the data set has interesting parts in the beginning
&lt;br&gt;that I would like to view clearly.
&lt;br&gt;&lt;br&gt;As an example, create the following table:
&lt;br&gt;&lt;br&gt;t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;ListPlot[t]
&lt;br&gt;&lt;br&gt;You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;interesting.
&lt;br&gt;&lt;br&gt;I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;and with the right ticks.
&lt;br&gt;&lt;br&gt;It is like a piecewise axis... is it possible?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Bob Hanlon
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92591--Re%3A--mg92569--Axis-in-two-scales-tp19856128p19856128.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856466</id>
	<title>[mg92590] RE: [mg92547]  RE: [mg92378] Comparison between Mathematica and other</title>
	<published>2008-10-07T04:05:14Z</published>
	<updated>2008-10-07T04:05:14Z</updated>
	<author>
		<name>Ingolf Dahl</name>
	</author>
	<content type="html">I feel as if I created a lot of confused debate by my recent post. I admit
&lt;br&gt;that my Sort example was not the best. I just wanted to provide my personal
&lt;br&gt;experience on what convinced me to use Mathematica, since there might
&lt;br&gt;somewhere be some persons who think in a similar way to me. My main point
&lt;br&gt;was that the command &amp;quot;Sort&amp;quot; maybe could illustrate the strength of
&lt;br&gt;Mathematica compared to other CAS systems, since it can be used in a very
&lt;br&gt;general way. I am no expert in the other systems.
&lt;br&gt;One could rewrite the same example in a maybe less &amp;quot;scary&amp;quot; way, missing the
&lt;br&gt;chance to tell anything about the pure function notation (#)&amp;, as Murray
&lt;br&gt;suggest. Then we obtain quite typical Mathematica expressions, and if they
&lt;br&gt;still are too frightening, then we maybe cannot claim without cheating that
&lt;br&gt;Mathematica is very accessible. We could also give simpler examples:
&lt;br&gt;&lt;br&gt;Sort strings into dictionary order:
&lt;br&gt;&lt;br&gt;Sort[{&amp;quot;cat&amp;quot;, &amp;quot;fish&amp;quot;, &amp;quot;catfish&amp;quot;, &amp;quot;Cat&amp;quot;}]
&lt;br&gt;&lt;br&gt;Sort by string length
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;SortBy[{&amp;quot;cat&amp;quot;, &amp;quot;fish&amp;quot;, &amp;quot;catfish&amp;quot;, &amp;quot;Cat&amp;quot;}, StringLength]
&lt;br&gt;&lt;br&gt;but such things maybe are easily done in the other systems also? Sorting
&lt;br&gt;playing-card is another possibility to illustrate the capability of
&lt;br&gt;Mathematica. Some persons, able to generalize, would get the point, while
&lt;br&gt;other would think that they never would desire to sort playing cards by a
&lt;br&gt;CAS system.
&lt;br&gt;(I just have to mention that I googled on the Sort command in another CAS
&lt;br&gt;system, and found a discussion on how to avoid getting variables sorted
&lt;br&gt;according to their machine addresses. I found that quite scaring!)
&lt;br&gt;&lt;br&gt;The topic of the thread was to compare Mathematica with other CAS systems,
&lt;br&gt;not to persuade newbies to use a CAS system. Then Paolo B. should
&lt;br&gt;concentrate on the strong sides of Mathematica. &amp;nbsp;
&lt;br&gt;The strong side of Mathematica is not that it is easily accessible, the
&lt;br&gt;strong side is that it is useful and from start designed in a clever, logic
&lt;br&gt;and systematic way to provide a unified approach to both symbolic and
&lt;br&gt;numerical math, wiith a design which provides freedom and power to the user.
&lt;br&gt;New and occasional users could find their way into the system via the
&lt;br&gt;numerous live examples in the help system. Do not forget the arbitrary
&lt;br&gt;numerical precision, the huge number range, the freedom to choose
&lt;br&gt;programming style and the pattern matching!
&lt;br&gt;&lt;br&gt;And do not forget to mention MathGroup, with 92576 letters and almost always
&lt;br&gt;pleasant answers: &amp;quot;We should not do YOUR homework, but anyway the answer
&lt;br&gt;is...&amp;quot;
&lt;br&gt;&lt;br&gt;I do not think neither my wife, my daughter nor I would have been impressed
&lt;br&gt;by a beautiful woman recommending Mathematica. And manipulate is a nice
&lt;br&gt;command, the cream on the top, but it was not our reason to choose
&lt;br&gt;Mathematica from the beginning. Or?
&lt;br&gt;&lt;br&gt;Ingolf Dahl
&lt;br&gt;Sweden
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: peter lindsay [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856466&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pl.0@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: den 4 oktober 2008 12:17
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856466&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mathgroup@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [mg92547] Re: [mg92537] Re: [mg92527] RE: [mg92378] 
&lt;br&gt;&amp;gt; Comparison between Mathematica and other
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I agree. The object is to persuade people how accessible 
&lt;br&gt;&amp;gt; Mathematica is, not how incredibly learned and expert the 
&lt;br&gt;&amp;gt; users need to be.
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2008/10/3 Murray Eisenberg &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856466&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murray@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I'd exercise caution before presenting such an example to 
&lt;br&gt;&amp;gt; people whom 
&lt;br&gt;&amp;gt; &amp;gt; you're trying to convince to turn to Mathematica. &amp;nbsp;all the vertical 
&lt;br&gt;&amp;gt; &amp;gt; strokes, including those in the brackets, make this look 
&lt;br&gt;&amp;gt; like a jumble 
&lt;br&gt;&amp;gt; &amp;gt; of incomprehensible symbols. &amp;nbsp;The effect could be precisely the 
&lt;br&gt;&amp;gt; &amp;gt; opposite of what you intend.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Ingolf Dahl wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I do not know how this is example is interesting or how 
&lt;br&gt;&amp;gt; it is done 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt; &amp;gt; other
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; systems, but once, 14 years back, it convinced me that I 
&lt;br&gt;&amp;gt; should use 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Mathematica for a specific problem. I wanted to sort the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; eigenvectors of
&lt;br&gt;&amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; real matrix according to decreasing size of the real part of the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; eigenvalues. For complex eigenvalue pairs I wanted the eigenvalue 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; with positive imaginary part sorted first. I just wanted 
&lt;br&gt;&amp;gt; to specify 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; sorting
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; rule, and did not feel for writing the sorting algorithm 
&lt;br&gt;&amp;gt; from scratch.
&lt;br&gt;&amp;gt; &amp;gt; This
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; is how I solved it in Mathematica
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Transpose[
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;Sort[Transpose[Eigensystem[RandomReal[{-1, 1}, {6, 6}]]],
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; Re[#2[[1]]] &amp;lt; Re[#1[[1]]] ||
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Re[#2[[1]]] == Re[#1[[1]]] &amp;&amp; Im[#2[[1]]] &amp;lt; Im[#1[[1]]] &amp;]]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I think this also is a good example of the use of functional 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; programming, and it helped me to get in to it.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; In Mathematica we are thus able to sort any kind of 
&lt;br&gt;&amp;gt; &amp;quot;objects&amp;quot; with 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; any
&lt;br&gt;&amp;gt; &amp;gt; kind
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; of sorting criteria, thanks to the generality of the language.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Murray Eisenberg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856466&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murray@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Mathematics &amp; Statistics Dept.
&lt;br&gt;&amp;gt; &amp;gt; Lederle Graduate Research Tower &amp;nbsp; &amp;nbsp; &amp;nbsp;phone 413 549-1020 (H)
&lt;br&gt;&amp;gt; &amp;gt; University of Massachusetts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;413 545-2859 (W)
&lt;br&gt;&amp;gt; &amp;gt; 710 North Pleasant Street &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fax &amp;nbsp; 413 545-1801
&lt;br&gt;&amp;gt; &amp;gt; Amherst, MA 01003-9305
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92378--Comparison-between-Mathematica-and-other-symbolic-systems-tp19740797p19856466.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856251</id>
	<title>[mg92589] Re: Axis in two scales</title>
	<published>2008-10-07T04:05:03Z</published>
	<updated>2008-10-07T04:05:03Z</updated>
	<author>
		<name>Bill Rowe-6</name>
	</author>
	<content type="html">On 10/6/08 at 4:13 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ncc1701zzz@...&lt;/a&gt; (Nacho) wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt;problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt;that I would like to view clearly.
&lt;br&gt;&lt;br&gt;&amp;gt;As an example, create the following table:
&lt;br&gt;&lt;br&gt;&amp;gt;t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt;ListPlot[t]
&lt;br&gt;&lt;br&gt;&amp;gt;You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt;interesting.
&lt;br&gt;&lt;br&gt;&amp;gt;I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt;plot covers x={0,0.5} and the second half x={0.5,5}] in the same
&lt;br&gt;&amp;gt;plot and with the right ticks.
&lt;br&gt;&lt;br&gt;&amp;gt;It is like a piecewise axis... is it possible?
&lt;br&gt;&lt;br&gt;There are a number of ways that should achieve something
&lt;br&gt;suitable. Based on my interpretation of what you are asking for,
&lt;br&gt;I suggest the following:
&lt;br&gt;&lt;br&gt;func = Piecewise[{{Sin[100 x], x &amp;lt; .5}, {Sin[x], x &amp;gt;= .5}}];
&lt;br&gt;&lt;br&gt;GraphicsRow[{Plot[func, {x, 0, .5},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Frame -&amp;gt; {True, True, False, False}, Axes -&amp;gt; None],
&lt;br&gt;&amp;nbsp; &amp;nbsp;Plot[func, {x, .5, 5}, Frame -&amp;gt; {True, False, False, False},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Axes -&amp;gt; None]}, Spacings -&amp;gt; 0]
&lt;br&gt;&lt;br&gt;I've used Piecewise rather than creating a list of data points
&lt;br&gt;to apply since that allows me to take advantage of Mathematica's
&lt;br&gt;adaptive sampling algorithm. I see no point to explicitly
&lt;br&gt;computing values and using ListPlot if the only purpose is to
&lt;br&gt;produce a graphic.
&lt;br&gt;&lt;br&gt;Literally, &amp;nbsp;have created two separate plots and use GraphicsRow
&lt;br&gt;to combine them in an appropriate fashion to make a single
&lt;br&gt;graphic. The net effect is a single graphic with a break in the x-axis.
&lt;br&gt;&lt;br&gt;This particular approach does introduce one aspect in the final
&lt;br&gt;graphic that could be seen as misleading. As the function is
&lt;br&gt;defined, there start of the graph on the right hand side should
&lt;br&gt;appear directly above the end of the graph on the left hand side
&lt;br&gt;rather than being displaced along the horizontal axis.
&lt;br&gt;&lt;br&gt;But given the scaling changes, it isn't clear to me making the
&lt;br&gt;start of the right graphic align vertically with the end of the
&lt;br&gt;left graphic is any less misleading.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92589--Re%3A-Axis-in-two-scales-tp19856251p19856251.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19855965</id>
	<title>[mg92588] Why is Mathematica assuming k==l and how do I make it not to?</title>
	<published>2008-10-07T04:04:51Z</published>
	<updated>2008-10-07T04:04:51Z</updated>
	<author>
		<name>Aaron Fude</name>
	</author>
	<content type="html">As in
&lt;br&gt;&lt;br&gt;Assuming[Element[{k, l}, Integers] ,
&lt;br&gt;&amp;nbsp;Integrate[Cos[k alpha] Cos[l alpha], {alpha, -Pi, Pi}]]
&lt;br&gt;&lt;br&gt;I get 0 whereas the answer is Pi if k=l;
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;Aaron
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92588--Why-is-Mathematica-assuming-k%3D%3Dl-and-how-do-I-make-it-not-to--tp19855965p19855965.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19855995</id>
	<title>[mg92587] Re: integration</title>
	<published>2008-10-07T04:04:38Z</published>
	<updated>2008-10-07T04:04:38Z</updated>
	<author>
		<name>sjoerd.c.devries@gmail.com</name>
	</author>
	<content type="html">Dear RG,
&lt;br&gt;&lt;br&gt;Which part of the result do you have difficulties with? The result is
&lt;br&gt;an expression which is true if certain conditions (listed in the first
&lt;br&gt;part of the output) are true.
&lt;br&gt;&lt;br&gt;The expression is indeed complex, but there isn't a law against the
&lt;br&gt;existence of complex expressions. Nor is it the case that they can
&lt;br&gt;always be simplified. Have you tried some values for the various
&lt;br&gt;constants in the expression to see if the result make any sense?
&lt;br&gt;&lt;br&gt;Cheers -- Sjoerd
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92587--Re%3A-integration-tp19855995p19855995.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856248</id>
	<title>[mg92586] Re: Print A Math Formula In Formatted Notebook</title>
	<published>2008-10-07T04:04:27Z</published>
	<updated>2008-10-07T04:04:27Z</updated>
	<author>
		<name>David Bailey-2</name>
	</author>
	<content type="html">John wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Add a cell to a notebook that prints a math formula in the evaluated
&lt;br&gt;&amp;gt; notebook.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Use appropriate pallet to create the formula.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is easy to create the formula, but I have not yet found a way to
&lt;br&gt;&amp;gt; print the formula in the evaluated notebook. On some tries, &amp;nbsp;the word
&lt;br&gt;&amp;gt; null &amp;nbsp;printed In the location where the formula should be. On others,
&lt;br&gt;&amp;gt; null is replaced with a rectangular box that is tinted pink.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why is this so hard? Anyone, who uses Mathematica to write a math
&lt;br&gt;&amp;gt; paper, has to do it over and over again.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The evaluated notebook is sent to the publisher, and the formulas have
&lt;br&gt;&amp;gt; to be in the evaluated notebook.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; John
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;At the risk of sounding a bit school master-ish, how about structuring 
&lt;br&gt;your query with some consideration of English grammar! Your first two 
&lt;br&gt;sentences seem to be imperatives (instructions to the reader do 
&lt;br&gt;something) rather than questions!
&lt;br&gt;&lt;br&gt;The question you are asking seems utterly trivial - type in any formula 
&lt;br&gt;and press Shift-Return (or press the Enter key on a large keyboard) and 
&lt;br&gt;your formula will be evaluated as far as possible and printed out!
&lt;br&gt;&lt;br&gt;Nobody here seems to know what it is you want to do!
&lt;br&gt;&lt;br&gt;David Bailey
&lt;br&gt;&lt;a href=&quot;http://www.dbaileyconsultancy.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dbaileyconsultancy.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92586--Re%3A-Print-A-Math-Formula-In-Formatted-Notebook-tp19856248p19856248.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856136</id>
	<title>[mg92585] Re: Axis in two scales</title>
	<published>2008-10-07T04:04:16Z</published>
	<updated>2008-10-07T04:04:16Z</updated>
	<author>
		<name>Ray Koopman</name>
	</author>
	<content type="html">On Oct 6, 1:13 am, Nacho &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ncc1701...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks.
&lt;/div&gt;&lt;br&gt;Transform the x-scale. For instance, define
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;W[x_] := If[x &amp;lt; .5, x, .5 + (x-.5)/9]
&lt;br&gt;&lt;br&gt;then plot using
&lt;br&gt;&lt;br&gt;&amp;nbsp; ListPlot[{W@#[[1]],#[[2]]}&amp;/@t,
&lt;br&gt;&amp;nbsp; &amp;nbsp;Ticks-&amp;gt;{{W@#,#}&amp;/@{.25,.5,2,3,4,5},Automatic}]
&lt;br&gt;&lt;br&gt;For more general situations, consider &amp;quot;nicer&amp;quot; functions such as
&lt;br&gt;&lt;br&gt;&amp;nbsp; With[{c = 9}, ListPlot[{ArcSinh[c*#[[1]]],#[[2]]}&amp;/@t,
&lt;br&gt;&amp;nbsp; &amp;nbsp;Ticks-&amp;gt;{{ArcSinh[c*#],#}&amp;/@{.1,.2,.5,1,2,3,4,5},Automatic}]]
&lt;br&gt;&lt;br&gt;with the parameter (in this case, c) and the list of tick values
&lt;br&gt;adjusted to taste.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92585--Re%3A-Axis-in-two-scales-tp19856136p19856136.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856445</id>
	<title>[mg92584] Re: integration</title>
	<published>2008-10-07T04:04:05Z</published>
	<updated>2008-10-07T04:04:05Z</updated>
	<author>
		<name>Jean-Marc Gulliet</name>
	</author>
	<content type="html">Jean-Marc Gulliet wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; RG wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I have been trying to simplify(integrate) the following function, but
&lt;br&gt;&amp;gt;&amp;gt; M6 seems to give a complex answer which i cann't understand.. please
&lt;br&gt;&amp;gt;&amp;gt; help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; x[s_]=\!\(
&lt;br&gt;&amp;gt;&amp;gt; \*SubsuperscriptBox[\(\[Integral]\), \(0\), \(s\)]\(Cos[
&lt;br&gt;&amp;gt;&amp;gt; \*FractionBox[\(r\ t\ \((\(-\[Kappa]0\) + \[Kappa]1 + r\ \[Kappa]1)\)
&lt;br&gt;&amp;gt;&amp;gt; + \((1 + r)\)\ S\ \((\[Kappa]0 - \[Kappa]1)\)\ \((\(-Log[S]\) + Log[S
&lt;br&gt;&amp;gt;&amp;gt; + r\ t])\)\),
&lt;br&gt;&amp;gt;&amp;gt; SuperscriptBox[\(r\), \(2\)]]] \[DifferentialD]t\)\)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; First, notice that if we use the *InputForm* of the above expression, we 
&lt;br&gt;&amp;gt; can easily add assumptions on the parameters of the integral (or we 
&lt;br&gt;&amp;gt; could use *Assuming*), for instance that S, r, and s are real and r != 0 
&lt;br&gt;&amp;gt; or s &amp;gt; 0.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, it seems that the above integral has no solution if the 
&lt;br&gt;&amp;gt; parameter S is positive. On the other hand, ff we allow S to be negative 
&lt;br&gt;&amp;gt; (or complex) then the integral has a symbolic complex solution.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In[49]:= Integrate[
&lt;br&gt;&amp;gt; &amp;nbsp;Cos[(r*t*(-\[Kappa]0 + \[Kappa]1 + r*\[Kappa]1) + (1 + r)*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; S*(\[Kappa]0 - \[Kappa]1)*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-Log[S] + Log[S + r*t]))/r^2], {t, 0, s},
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Assumptions -&amp;gt; S &amp;gt; 0]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Out[49]= Integrate[
&lt;br&gt;&amp;gt; &amp;nbsp;Cos[(r t (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1) + (1 +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; r) S (\[Kappa]0 - \[Kappa]1) (-Log[S] + Log[S + r t]))/r^2], {t,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;0, s}, Assumptions -&amp;gt; S &amp;gt; 0]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In[46]:= Integrate[
&lt;br&gt;&amp;gt; &amp;nbsp;Cos[(r*t*(-\[Kappa]0 + \[Kappa]1 + r*\[Kappa]1) + (1 + r)*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; S*(\[Kappa]0 - \[Kappa]1)*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-Log[S] + Log[S + r*t]))/r^2], {t, 0, s},
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Assumptions -&amp;gt; {Element[{S, r, s}, Reals], r != 0, s &amp;gt; 0}]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Out[46]= If[r S &amp;gt; 0 || s + S/r &amp;lt;= 0, (1/(
&lt;br&gt;&amp;gt; &amp;nbsp;2 (\[Kappa]0 - \[Kappa]1 - r \[Kappa]1)))
&lt;br&gt;&amp;gt; &amp;nbsp;r S^(-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)) (r s + S)^(-((
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [... output partially deleted ...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r^2)] Sin[(S \[Kappa]0)/r^2 - (S \[Kappa]1)/r^2 - (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S \[Kappa]1)/r]),
&lt;br&gt;&amp;gt; &amp;nbsp;Integrate[
&lt;br&gt;&amp;gt; &amp;nbsp; Cos[(r t (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1) + (1 +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r) S (\[Kappa]0 - \[Kappa]1) (-Log[S] + Log[S + r t]))/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;r^2], {t, 0, s},
&lt;br&gt;&amp;gt; &amp;nbsp; Assumptions -&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;r != 0 &amp;&amp; s &amp;gt; 0 &amp;&amp; r S &amp;lt;= 0 &amp;&amp; r (r s + S) &amp;gt; 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; S \[Element] Reals]]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can manipulate further the integral thanks to *FullSimplify* and 
&lt;br&gt;&amp;gt; some assumptions on the parameters.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Assuming[r S &amp;gt; 0 || s + S/r &amp;lt;= 0,
&lt;br&gt;&amp;gt; &amp;nbsp;FullSimplify[
&lt;br&gt;&amp;gt; &amp;nbsp; 1/(2 (\[Kappa]0 - \[Kappa]1 - r \[Kappa]1))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;r S^(-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)) (r s + S)^(-((
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [... input partially deleted ...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S \[Kappa]1)/r])]]
&lt;/div&gt;&lt;br&gt;It took a long time, but the last expression returned the following 
&lt;br&gt;result (which is valid only for r S &amp;gt; 0 || s + S/r &amp;lt;= 0):
&lt;br&gt;&lt;br&gt;(1/(2 r))E^(-((I S (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp;r^2)) (S ExpIntegralE[-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r^2), -((I S (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/r^2)] -
&lt;br&gt;&amp;nbsp; &amp;nbsp; S^(-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)) (r s + S)^(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1 + (I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ExpIntegralE[-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2), -((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I (r s + S) (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/r^2)] +
&lt;br&gt;&amp;nbsp; &amp;nbsp; E^((2 I S (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;r^2) (S ExpIntegralE[(I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2, (
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I S (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/r^2] - (S^3)^((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2) (r s + S)^(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 - (I (1 + r) S (\[Kappa]0 - \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r^2) ((\[Kappa]0 - (1 + r) \[Kappa]1)^2)^((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I (1 + r) S (\[Kappa]0 - \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r^2) (S^2 (r s + S)^2 (\[Kappa]0 - (1 + r) \[Kappa]1)^2)^(-((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I (1 + r) S (\[Kappa]0 - \[Kappa]1))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r^2)) ((r s + S) (S + r Conjugate[s]))^((
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ExpIntegralE[(I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2, (
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I (r s + S) (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1))/r^2]))
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;-- Jean-Marc
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92584--Re%3A-integration-tp19856445p19856445.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856003</id>
	<title>[mg92583] Re: Axis in two scales</title>
	<published>2008-10-07T04:03:54Z</published>
	<updated>2008-10-07T04:03:54Z</updated>
	<author>
		<name>Kevin J. McCann-2</name>
	</author>
	<content type="html">David Park's Presentation Package can do this. David has a response a 
&lt;br&gt;little while ago:
&lt;br&gt;&lt;br&gt;Re: How can I create a two-axis graph in Mathematica v6
&lt;br&gt;&lt;br&gt;You might check this out. I highly recommend his package.
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;Nacho wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;&amp;gt; problem is that the data set has interesting parts in the beginning
&lt;br&gt;&amp;gt; that I would like to view clearly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As an example, create the following table:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;&amp;gt; ListPlot[t]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;&amp;gt; interesting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;&amp;gt; plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;&amp;gt; and with the right ticks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is like a piecewise axis... is it possible?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92583--Re%3A-Axis-in-two-scales-tp19856003p19856003.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856289</id>
	<title>[mg92582] Re: integration</title>
	<published>2008-10-07T04:03:43Z</published>
	<updated>2008-10-07T04:03:43Z</updated>
	<author>
		<name>Jean-Marc Gulliet</name>
	</author>
	<content type="html">RG wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have been trying to simplify(integrate) the following function, but
&lt;br&gt;&amp;gt; M6 seems to give a complex answer which i cann't understand.. please
&lt;br&gt;&amp;gt; help.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; x[s_]=\!\(
&lt;br&gt;&amp;gt; \*SubsuperscriptBox[\(\[Integral]\), \(0\), \(s\)]\(Cos[
&lt;br&gt;&amp;gt; \*FractionBox[\(r\ t\ \((\(-\[Kappa]0\) + \[Kappa]1 + r\ \[Kappa]1)\)
&lt;br&gt;&amp;gt; + \((1 + r)\)\ S\ \((\[Kappa]0 - \[Kappa]1)\)\ \((\(-Log[S]\) + Log[S
&lt;br&gt;&amp;gt; + r\ t])\)\),
&lt;br&gt;&amp;gt; SuperscriptBox[\(r\), \(2\)]]] \[DifferentialD]t\)\)
&lt;/div&gt;&lt;br&gt;First, notice that if we use the *InputForm* of the above expression, we 
&lt;br&gt;can easily add assumptions on the parameters of the integral (or we 
&lt;br&gt;could use *Assuming*), for instance that S, r, and s are real and r != 0 
&lt;br&gt;or s &amp;gt; 0.
&lt;br&gt;&lt;br&gt;However, it seems that the above integral has no solution if the 
&lt;br&gt;parameter S is positive. On the other hand, ff we allow S to be negative 
&lt;br&gt;(or complex) then the integral has a symbolic complex solution.
&lt;br&gt;&lt;br&gt;In[49]:= Integrate[
&lt;br&gt;&amp;nbsp; Cos[(r*t*(-\[Kappa]0 + \[Kappa]1 + r*\[Kappa]1) + (1 + r)*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S*(\[Kappa]0 - \[Kappa]1)*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-Log[S] + Log[S + r*t]))/r^2], {t, 0, s},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Assumptions -&amp;gt; S &amp;gt; 0]
&lt;br&gt;&lt;br&gt;Out[49]= Integrate[
&lt;br&gt;&amp;nbsp; Cos[(r t (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1) + (1 +
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r) S (\[Kappa]0 - \[Kappa]1) (-Log[S] + Log[S + r t]))/r^2], {t,
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0, s}, Assumptions -&amp;gt; S &amp;gt; 0]
&lt;br&gt;&lt;br&gt;In[46]:= Integrate[
&lt;br&gt;&amp;nbsp; Cos[(r*t*(-\[Kappa]0 + \[Kappa]1 + r*\[Kappa]1) + (1 + r)*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S*(\[Kappa]0 - \[Kappa]1)*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-Log[S] + Log[S + r*t]))/r^2], {t, 0, s},
&lt;br&gt;&amp;nbsp; &amp;nbsp; Assumptions -&amp;gt; {Element[{S, r, s}, Reals], r != 0, s &amp;gt; 0}]
&lt;br&gt;&lt;br&gt;Out[46]= If[r S &amp;gt; 0 || s + S/r &amp;lt;= 0, (1/(
&lt;br&gt;&amp;nbsp; 2 (\[Kappa]0 - \[Kappa]1 - r \[Kappa]1)))
&lt;br&gt;&amp;nbsp; r S^(-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)) (r s + S)^(-((
&lt;br&gt;&lt;br&gt;[... output partially deleted ...]
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r^2)] Sin[(S \[Kappa]0)/r^2 - (S \[Kappa]1)/r^2 - (
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S \[Kappa]1)/r]),
&lt;br&gt;&amp;nbsp; Integrate[
&lt;br&gt;&amp;nbsp; &amp;nbsp;Cos[(r t (-\[Kappa]0 + \[Kappa]1 + r \[Kappa]1) + (1 +
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r) S (\[Kappa]0 - \[Kappa]1) (-Log[S] + Log[S + r t]))/
&lt;br&gt;&amp;nbsp; &amp;nbsp; r^2], {t, 0, s},
&lt;br&gt;&amp;nbsp; &amp;nbsp;Assumptions -&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; r != 0 &amp;&amp; s &amp;gt; 0 &amp;&amp; r S &amp;lt;= 0 &amp;&amp; r (r s + S) &amp;gt; 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;S \[Element] Reals]]
&lt;br&gt;&lt;br&gt;&lt;br&gt;You can manipulate further the integral thanks to *FullSimplify* and 
&lt;br&gt;some assumptions on the parameters.
&lt;br&gt;&lt;br&gt;Assuming[r S &amp;gt; 0 || s + S/r &amp;lt;= 0,
&lt;br&gt;&amp;nbsp; FullSimplify[
&lt;br&gt;&amp;nbsp; &amp;nbsp;1/(2 (\[Kappa]0 - \[Kappa]1 - r \[Kappa]1))
&lt;br&gt;&amp;nbsp; &amp;nbsp; r S^(-((I (1 + r) S (\[Kappa]0 - \[Kappa]1))/r^2)) (r s + S)^(-((
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[... input partially deleted ...]
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S \[Kappa]1)/r])]]
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;-- Jean-Marc
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92582--Re%3A-integration-tp19856289p19856289.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856448</id>
	<title>[mg92581] Re: Using an locator and Rotating 3D graphics</title>
	<published>2008-10-07T04:03:32Z</published>
	<updated>2008-10-07T04:03:32Z</updated>
	<author>
		<name>David Park-4</name>
	</author>
	<content type="html">Manipulate is like a set-piece dynamic display. It tries to be very versitle 
&lt;br&gt;but for most custom dynamic presentations it becomes a pain-in-the-neck. It 
&lt;br&gt;is better to learn how to construct your own dynamic presentations. Here is 
&lt;br&gt;more direct code for your display:
&lt;br&gt;&lt;br&gt;Module[
&lt;br&gt;&amp;nbsp;{pt1 = {1, 0}, pt2 = {0, 1}},
&lt;br&gt;&amp;nbsp;Row[{
&lt;br&gt;&amp;nbsp; &amp;nbsp;Graphics[
&lt;br&gt;&amp;nbsp; &amp;nbsp; {Dynamic@Arrow[{pt1, pt2}],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Locator[Dynamic[pt1]],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Locator[Dynamic[pt2]]},
&lt;br&gt;&amp;nbsp; &amp;nbsp; PlotRange -&amp;gt; 2,
&lt;br&gt;&amp;nbsp; &amp;nbsp; ImageSize -&amp;gt; 200],
&lt;br&gt;&amp;nbsp; &amp;nbsp;Dynamic@
&lt;br&gt;&amp;nbsp; &amp;nbsp; ParametricPlot3D[{Part[pt2 - pt1, 1] Cos[u],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Part[pt2 - pt1, 2] &amp;nbsp;Sin[u], u}, {u, 0, 4 Pi},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PlotRange -&amp;gt; {{-2, 2}, {-2, 2}},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ColorFunction -&amp;gt; Function[{x, y, z, u}, Hue[u]],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PlotStyle -&amp;gt; Thick,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ImageSize -&amp;gt; 350,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;BoxRatios -&amp;gt; {1, 1, 1}]}]
&lt;br&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;You could use DynamicModule, but it really isn't necessary here. The 
&lt;br&gt;Locators are confined to the lhs plot and not imposed on the entire display. 
&lt;br&gt;In the code above I bypassed calculating the v variable you used. &amp;nbsp;Let's 
&lt;br&gt;reintroduce v. Quite often we might have a set of primary dynamic variables, 
&lt;br&gt;such as pt1 and pt2 here, which are manipulated by the mouse or sliders or 
&lt;br&gt;other dynamic elements, and a set of dependent dynamic variables that depend 
&lt;br&gt;on the primary variables, such as v here. We can handle this situation as in 
&lt;br&gt;the following code. Here we use the two argument form of Dynamic and when a 
&lt;br&gt;primary dynamic variable is adjusted the routine calcAll is called to 
&lt;br&gt;calculate all the dependent quantities (only v in this case). I've also made 
&lt;br&gt;some stylistic changes to the display.
&lt;br&gt;&lt;br&gt;Module[
&lt;br&gt;&amp;nbsp;{(* Primary dynamic variables *)
&lt;br&gt;&amp;nbsp; pt1 = {1, 0}, pt2 = {0, 1},
&lt;br&gt;&amp;nbsp; (* Dependent dynamic variable *)
&lt;br&gt;&amp;nbsp; v,
&lt;br&gt;&amp;nbsp; (* Other variables *)
&lt;br&gt;&amp;nbsp; calcAll},
&lt;br&gt;&lt;br&gt;&amp;nbsp;calcAll[p1_, p2_] := (v = p2 - p1);
&lt;br&gt;&lt;br&gt;(* Initialize dependent variables *)
&lt;br&gt;&amp;nbsp;calcAll[pt1, pt2];
&lt;br&gt;&lt;br&gt;&amp;nbsp;(* Display *)
&lt;br&gt;&amp;nbsp;Panel[
&lt;br&gt;&amp;nbsp; Row[{
&lt;br&gt;&amp;nbsp; &amp;nbsp; Graphics[
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{Arrowheads[.1],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Dynamic@Arrow[{pt1, pt2}],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Locator[Dynamic[pt1, (pt1 = #; calcAll[pt1, pt2]) &amp;],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Graphics[{AbsolutePointSize[8], Point[{0, 0}]},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ImageSize -&amp;gt; 10]],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Locator[Dynamic[pt2, (pt2 = #; calcAll[pt1, pt2]) &amp;], None]},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PlotRange -&amp;gt; 2,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ImageSize -&amp;gt; 200],
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dynamic@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ParametricPlot3D[{v[[1]] Cos[u], v[[2]] &amp;nbsp;Sin[u], u}, {u, 0,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 Pi}, PlotRange -&amp;gt; {{-2, 2}, {-2, 2}},
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ColorFunction -&amp;gt; Function[{x, y, z, u}, Hue[u]],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PlotStyle -&amp;gt; Thick,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Axes -&amp;gt; False,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SphericalRegion -&amp;gt; True, RotationAction -&amp;gt; Clip,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ImageSize -&amp;gt; 350,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Boxed -&amp;gt; False,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BoxRatios -&amp;gt; {1, 1, 1}]}],
&lt;br&gt;&amp;nbsp; Style[&amp;quot;Custom Dynamics&amp;quot;, 16]]
&lt;br&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;David Park
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;djmpark@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://home.comcast.net/~djmpark/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://home.comcast.net/~djmpark/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;quot;KB&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856448&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;KennethLeeBaker@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856448&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gccheo$s5t$1@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; When I try to use locators as inputs to 3D graphics, I end up not
&lt;br&gt;&amp;gt; being able to rotate 3d graphics. &amp;nbsp;Clicking on the graphic moves the
&lt;br&gt;&amp;gt; nearest locator rather than the graphic. &amp;nbsp;Switching to a collection of
&lt;br&gt;&amp;gt; 2D sliders works in a pinch, but does not achieve the desired effect.
&lt;br&gt;&amp;gt; Here is an example:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Manipulate[v = pt2 - pt1;
&lt;br&gt;&amp;gt; {Graphics[Arrow[{pt1, pt2}], PlotRange -&amp;gt; 2],
&lt;br&gt;&amp;gt; &amp;nbsp;ParametricPlot3D[{v[[1]] Cos[u], v[[2]] Sin[u], u}, {u, 0, 4 Pi},
&lt;br&gt;&amp;gt; &amp;nbsp; PlotRange -&amp;gt; {{-2, 2}, {-2, 2}},
&lt;br&gt;&amp;gt; &amp;nbsp; ColorFunction -&amp;gt; Function[{x, y, z, u}, Hue[u]],
&lt;br&gt;&amp;gt; &amp;nbsp; PlotStyle -&amp;gt; Thick]}, {{pt1, {0, 1}}, Locator}, &amp;nbsp; {{pt2, {1, 0}},
&lt;br&gt;&amp;gt; &amp;nbsp;Locator}]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92581--Re%3A-Using-an-locator-and-Rotating-3D-graphics-tp19856448p19856448.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19855976</id>
	<title>[mg92580] Format Type of new Output Cells to OutputForm</title>
	<published>2008-10-07T04:03:21Z</published>
	<updated>2008-10-07T04:03:21Z</updated>
	<author>
		<name>magma-2</name>
	</author>
	<content type="html">I need to set the Format Type of new Output Cells to OutputForm.
&lt;br&gt;&lt;br&gt;This can be done with menu commands: Edit&amp;gt;Preferences...&amp;gt;Evaluation
&lt;br&gt;and then select
&lt;br&gt;Format type of new Output Cells &amp;nbsp;to OutputForm
&lt;br&gt;&lt;br&gt;This is ok, but I would like to do it programmatically.
&lt;br&gt;I guess I have to set some option in the notebook, but how?
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92580--Format-Type-of-new-Output-Cells-to-OutputForm-tp19855976p19855976.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833991</id>
	<title>[mg92579] Using an locator and Rotating 3D graphics</title>
	<published>2008-10-06T01:14:57Z</published>
	<updated>2008-10-06T01:14:57Z</updated>
	<author>
		<name>KB-11</name>
	</author>
	<content type="html">When I try to use locators as inputs to 3D graphics, I end up not
&lt;br&gt;being able to rotate 3d graphics. &amp;nbsp;Clicking on the graphic moves the
&lt;br&gt;nearest locator rather than the graphic. &amp;nbsp;Switching to a collection of
&lt;br&gt;2D sliders works in a pinch, but does not achieve the desired effect.
&lt;br&gt;Here is an example:
&lt;br&gt;&lt;br&gt;Manipulate[v = pt2 - pt1;
&lt;br&gt;&amp;nbsp;{Graphics[Arrow[{pt1, pt2}], PlotRange -&amp;gt; 2],
&lt;br&gt;&amp;nbsp; ParametricPlot3D[{v[[1]] Cos[u], v[[2]] Sin[u], u}, {u, 0, 4 Pi},
&lt;br&gt;&amp;nbsp; &amp;nbsp;PlotRange -&amp;gt; {{-2, 2}, {-2, 2}},
&lt;br&gt;&amp;nbsp; &amp;nbsp;ColorFunction -&amp;gt; Function[{x, y, z, u}, Hue[u]],
&lt;br&gt;&amp;nbsp; &amp;nbsp;PlotStyle -&amp;gt; Thick]}, {{pt1, {0, 1}}, Locator}, &amp;nbsp; {{pt2, {1, 0}},
&lt;br&gt;&amp;nbsp; Locator}]
&lt;br&gt;&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92579--Using-an-locator-and-Rotating-3D-graphics-tp19833991p19833991.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833967</id>
	<title>[mg92578] NET/Link Thread in C#</title>
	<published>2008-10-06T01:14:46Z</published>
	<updated>2008-10-06T01:14:46Z</updated>
	<author>
		<name>Fabian M. Uriarte</name>
	</author>
	<content type="html">Dear All-
&lt;br&gt;&lt;br&gt;Can anyone give me a hint on how to start C# threads from
&lt;br&gt;Mathematica ?
&lt;br&gt;&lt;br&gt;I tried:
&lt;br&gt;====
&lt;br&gt;Needs[&amp;quot;NETLink`&amp;quot;]
&lt;br&gt;InstallNET[];
&lt;br&gt;&lt;br&gt;LoadNETType[&amp;quot;System.Threading.Thread&amp;quot;]
&lt;br&gt;&lt;br&gt;myThread = NETNew[ThreadStart]
&lt;br&gt;&lt;br&gt;and I got:
&lt;br&gt;=======
&lt;br&gt;NETType[&amp;quot;System.Threading.Thread&amp;quot;, 8]
&lt;br&gt;NETNew::args: Improper count or type of arguments. &amp;gt;&amp;gt;
&lt;br&gt;$Failed
&lt;br&gt;&lt;br&gt;I also tried:
&lt;br&gt;========
&lt;br&gt;LoadNETType[&amp;quot;System.Threading.Thread&amp;quot;]
&lt;br&gt;t = NETNew[`Thread, Console`Out@WriteLine[&amp;quot;Hello from .NET&amp;quot;] Start]
&lt;br&gt;&lt;br&gt;and I got:
&lt;br&gt;======
&lt;br&gt;NETType[&amp;quot;System.Threading.Thread&amp;quot;, 8]
&lt;br&gt;NETNew::args: Improper count or type of arguments. &amp;gt;&amp;gt;
&lt;br&gt;$Failed
&lt;br&gt;&lt;br&gt;&lt;br&gt;I believe class ThreadStart needs to be instantiated before class
&lt;br&gt;Thread, as the former is an argument of the latter's constructor.
&lt;br&gt;&lt;br&gt;Please help Thank you.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92578--NET-Link-Thread-in-C--tp19833967p19833967.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834217</id>
	<title>[mg92577] Re: Comparison between Mathematica and other</title>
	<published>2008-10-06T01:14:35Z</published>
	<updated>2008-10-06T01:14:35Z</updated>
	<author>
		<name>Bill Rowe-6</name>
	</author>
	<content type="html">On 10/5/08 at 6:06 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;siegman@...&lt;/a&gt; (AES) wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;2) &amp;nbsp;Now it's certainly true that if you want to modify the default
&lt;br&gt;&amp;gt;behavior of Sort[ ], you do indeed have to be able to do (or more
&lt;br&gt;&amp;gt;likely copy and modify) what I'd agree is some very modest level of
&lt;br&gt;&amp;gt;procedural programming, as well illustrated in the example above:
&lt;br&gt;&lt;br&gt;&amp;gt;Re[#2[[1]]] &amp;lt; Re[#1[[1]]] || Re[#2[[1]]] == Re[#1[[1]]] &amp;&amp;
&lt;br&gt;&amp;gt;Im[#2[[1]]] &amp;lt; Im[#1[[1]]] &amp;]]
&lt;br&gt;&lt;br&gt;But this need not have been done this way. It could have been done:
&lt;br&gt;&lt;br&gt;Ordering@(Re/@{##}) || Equal@@(Re/@{##}) &amp;&amp; Ordering@(Im/@{##})&amp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;From the perspective of someone not familiar with Mathematica
&lt;br&gt;and its notation, this version is undoubtedly more opaque. But
&lt;br&gt;for me, this is much clearer and easier to read. The issue of
&lt;br&gt;determining what is being grouped by the numerous square
&lt;br&gt;brackets has been eliminated.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92577--Re%3A-Comparison-between-Mathematica-and-other-tp19834217p19834217.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834302</id>
	<title>[mg92576] Re: Comparison between Mathematica and other symbolic systems</title>
	<published>2008-10-06T01:14:25Z</published>
	<updated>2008-10-06T01:14:25Z</updated>
	<author>
		<name>Bill Rowe-6</name>
	</author>
	<content type="html">On 10/5/08 at 6:06 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834302&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;siegman@...&lt;/a&gt; (AES) wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834302&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gc7fsf$eo7$1@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt;Bill Rowe &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834302&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;readnews@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;On 10/3/08 at 6:41 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834302&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;awnl@...&lt;/a&gt; (Albert Retey) wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;When choosing a system, I think one needs to answer these
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;questions:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;1) can the system solve the problem at hand 2) how much effort is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;it to feed the problem to the system 3) how efficient is the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;system in calculating the solution
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;Which really says 2) is the most important consideration. But I
&lt;br&gt;&amp;gt;&amp;gt;would expand 2) to be the amount of time to input the problem *and*
&lt;br&gt;&amp;gt;&amp;gt;verify the input has been done correctly. In my experience, the
&lt;br&gt;&amp;gt;&amp;gt;time to verify/debug input is by far where most of the effort is
&lt;br&gt;&amp;gt;&amp;gt;spent.
&lt;br&gt;&lt;br&gt;&amp;gt;No mention at all of &amp;quot;how easy it is to learn to use the system&amp;quot;
&lt;br&gt;&amp;gt;(and remember how to use it between infrequent uses) ?!?!?!?
&lt;br&gt;&lt;br&gt;The current version of Mathematica has more than 2900 built-in
&lt;br&gt;symbols, with many of these having long lists of options. I
&lt;br&gt;would expect any other system with capabilities equivalent to
&lt;br&gt;Mathematica to have a similarly long list of built-in commands
&lt;br&gt;and options. This number of commands and options is far too long
&lt;br&gt;for infrequent users to remember. It would require a significant
&lt;br&gt;reduction in this number to enable easy recall by infrequent
&lt;br&gt;users. But that also implies a significant reduction in capability.
&lt;br&gt;&lt;br&gt;It is very hard to see how another system with equivalent
&lt;br&gt;capability to Mathematica could be significantly easier for
&lt;br&gt;infrequent users.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92576--Re%3A-Comparison-between-Mathematica-and-other-symbolic-systems-tp19834302p19834302.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834191</id>
	<title>[mg92575] Re: Finding the optimum by repeteadly zooming on the solution space (or something like that)</title>
	<published>2008-10-06T01:14:14Z</published>
	<updated>2008-10-06T01:14:14Z</updated>
	<author>
		<name>Bill Rowe-6</name>
	</author>
	<content type="html">On 10/5/08 at 6:05 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834191&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cuak2000@...&lt;/a&gt; (Mauricio Esteban Cuak)
&lt;br&gt;wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;Hello everyone.I know somebody has probably writ mathematica code on
&lt;br&gt;&amp;gt;this problem. A general answer would probably benefit more people,
&lt;br&gt;&amp;gt;but I'll do the specific example, 'cause I'm not sure how to explain
&lt;br&gt;&amp;gt;it in another way.
&lt;br&gt;&lt;br&gt;&amp;gt;I have these restrictions:
&lt;br&gt;&lt;br&gt;&amp;gt;cpoAg1= ( -x + (70*a*(x^0.4 + y^0.4)^0.75)/x^0.6);
&lt;br&gt;&lt;br&gt;&amp;gt;(*and*)
&lt;br&gt;&lt;br&gt;&amp;gt;cpoAg2= ((70*(1 - a)*(x^0.4 + y^0.4)^0.75)/y^0.6 - 2*y);
&lt;br&gt;&lt;br&gt;&amp;gt;(* And I need to find the &amp;quot;a&amp;quot; that will maximise this following
&lt;br&gt;&amp;gt;function. I don't need and exact solution, but something that is
&lt;br&gt;&amp;gt;sufficiently near *)
&lt;br&gt;&lt;br&gt;&amp;gt;obj = &amp;nbsp;-x^2/2 + 100*(x^0.4 + y^0.4)^1.75 - y^2;
&lt;br&gt;&lt;br&gt;&amp;gt;(* &amp;quot;A&amp;quot; goes between 0 and 1 so I discretise to obtain the {x,y} that
&lt;br&gt;&amp;gt;maximise every &amp;quot;a&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;gt;the Table command gives me the list of rules which I can replace on
&lt;br&gt;&amp;gt;&amp;quot;obj&amp;quot; later to find the maximum. No problem here*)
&lt;br&gt;&lt;br&gt;&amp;gt;rules = Table[
&lt;br&gt;&amp;gt;FindRoot[{cpoAg1 == 0, cpoAg2 == 0}, {{x, 0.1}, {y, 0.1}}], {a, 0.=
&lt;br&gt;1,
&lt;br&gt;&amp;gt;1, 0.1}
&lt;br&gt;&amp;gt;];
&lt;br&gt;&lt;br&gt;&amp;gt;(*the maximum is found with this following function *)
&lt;br&gt;&lt;br&gt;&amp;gt;Max[Thread[ReplaceAll[obj, rules]]];
&lt;br&gt;&lt;br&gt;&amp;gt;So far so good...I could discretise &amp;quot;a&amp;quot; as thinly as I want, but I
&lt;br&gt;&amp;gt;can't afford the luxury of being that inneficient, 'cause I've got
&lt;br&gt;&amp;gt;to do other things later with this part of the program.
&lt;br&gt;&lt;br&gt;I don't understand why you would take this approach. Why not use
&lt;br&gt;the built-in function NMaximize, That is:
&lt;br&gt;&lt;br&gt;In[20]:= NMaximize[{obj,
&lt;br&gt;&amp;nbsp; &amp;nbsp;cpoAg1 == 0 &amp;&amp; cpoAg2 == 0 &amp;&amp; x &amp;gt; 0.1 &amp;&amp; y &amp;gt; 0.1}, {a, x, y}]
&lt;br&gt;&lt;br&gt;Out[20]= {2084.72,{a-&amp;gt;0.527688,x-&amp;gt;22.6727,y-&amp;gt;13.7173}}
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92575--Re%3A-Finding-the-optimum-by-repeteadly-zooming-on-the-solution-space-%28or-something-like-that%29-tp19834191p19834191.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833963</id>
	<title>[mg92574] Re: Comparison between Mathematica and other</title>
	<published>2008-10-06T01:14:03Z</published>
	<updated>2008-10-06T01:14:03Z</updated>
	<author>
		<name>AES</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19833963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gc9mh8$2br$1@...&lt;/a&gt;&amp;gt;, &amp;quot;peter lindsay&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19833963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pl.0@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I agree. The object is to persuade people how accessible Mathematica is, not
&lt;br&gt;&amp;gt; how incredibly learned and expert the users need to be.
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&lt;br&gt;Not certain what earlier words Peter is agreeing with, but I agree with 
&lt;br&gt;what Peter himself said -- perhaps edited to say:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;The [primary objectives should be] to persuade people how accessible
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Mathematica [can be], not how incredibly learned and expert [its]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; users need to be -- **and then to make it that accessible**.&amp;quot;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92378--Comparison-between-Mathematica-and-other-symbolic-systems-tp19740797p19833963.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834146</id>
	<title>[mg92573] Re: Expressing values in the legend in terms of original data</title>
	<published>2008-10-06T01:13:53Z</published>
	<updated>2008-10-06T01:13:53Z</updated>
	<author>
		<name>sjoerd.c.devries@gmail.com</name>
	</author>
	<content type="html">In addition to my previous reply I should have taken the automatic
&lt;br&gt;ranging of ContourPlot into account as it scales values to give a 0..1
&lt;br&gt;range.
&lt;br&gt;&lt;br&gt;So, if you want to make sure the legend maps GrayLevels 0..1 to the
&lt;br&gt;-2..2 range (in case the ends of this range are not within the plot
&lt;br&gt;region) you have to adjust the scaling of ContourPlot accordingly:
&lt;br&gt;&lt;br&gt;contourPlotFun =
&lt;br&gt;&amp;nbsp; ContourPlot[
&lt;br&gt;&amp;nbsp; &amp;nbsp;2 Sin[x y], {x, -\[Pi]/2, \[Pi]/2}, {y, -\[Pi]/2, \[Pi]/2},
&lt;br&gt;&amp;nbsp; &amp;nbsp;ColorFunctionScaling -&amp;gt; False,
&lt;br&gt;&amp;nbsp; &amp;nbsp;ColorFunction -&amp;gt; (GrayLevel[1 - ((# + 2)/4)] &amp;)];
&lt;br&gt;&lt;br&gt;ShowLegend[contourPlotFun, {GrayLevel[1 - #] &amp;, 10, &amp;quot; 2&amp;quot;, &amp;quot;-2&amp;quot;,
&lt;br&gt;&amp;nbsp; LegendPosition -&amp;gt; {1.1, -.4}, LegendShadow -&amp;gt; None}]
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers -- Sjoerd
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Oct 1, 1:12 pm, er &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834146&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erwann.rog...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Considering
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; contourPlotFun=
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ContourPlot[2 Sin[x y],{x,-\[Pi]/2,\[Pi]/2},{y,-\[Pi]/2,\[Pi]/2},
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; DisplayFunction\[Rule]Identity];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ShowLegend[
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; contourPlotFun,{GrayLevel[1-#]&amp;,10,&amp;quot; 1&amp;quot;,&amp;quot;-1&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; LegendPosition\[Rule]{1.1,-.4}}];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The legend here is misleading, because the min and max values are -2
&lt;br&gt;&amp;gt; and 2, respectively, not -1 and 1. So how can I modify the input to
&lt;br&gt;&amp;gt; ShowLegend to reflect that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92573--Re%3A-Expressing-values-in-the-legend-in-terms-of-original-data-tp19834146p19834146.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834120</id>
	<title>[mg92572] Re: Expressing values in the legend in terms of original data</title>
	<published>2008-10-06T01:13:42Z</published>
	<updated>2008-10-06T01:13:42Z</updated>
	<author>
		<name>sjoerd.c.devries@gmail.com</name>
	</author>
	<content type="html">Er,
&lt;br&gt;&lt;br&gt;In my version of Mathematica (6.03 WinXP) the ContourPlot is in color
&lt;br&gt;by default. It doesn't make sense to add a grayscale legend. So either
&lt;br&gt;you color the legend or you add a greyscale ColorFunction to the
&lt;br&gt;ContourPlot:
&lt;br&gt;&lt;br&gt;contourPlotFun =
&lt;br&gt;&amp;nbsp; ContourPlot[
&lt;br&gt;&amp;nbsp; &amp;nbsp;2 Sin[x y], {x, -\[Pi]/2, \[Pi]/2}, {y, -\[Pi]/2, \[Pi]/2},
&lt;br&gt;&amp;nbsp; &amp;nbsp;ColorFunction -&amp;gt; (GrayLevel[1 - #] &amp;)];
&lt;br&gt;&lt;br&gt;ShowLegend[contourPlotFun, {GrayLevel[1 - #] &amp;, 10, &amp;quot; 2&amp;quot;, &amp;quot;-2&amp;quot;,
&lt;br&gt;&amp;nbsp; LegendPosition -&amp;gt; {1.1, -.4}}]
&lt;br&gt;&lt;br&gt;The legend doesn't adapt to the range of your plot. You have to
&lt;br&gt;provide the range yourself. In the expression above I put in 2 and -2
&lt;br&gt;and that does the trick.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Sjoerd
&lt;br&gt;&lt;br&gt;On Oct 1, 1:12 pm, er &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834120&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;erwann.rog...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Considering
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; contourPlotFun=
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ContourPlot[2 Sin[x y],{x,-\[Pi]/2,\[Pi]/2},{y,-\[Pi]/2,\[Pi]/2},
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; DisplayFunction\[Rule]Identity];
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt; ShowLegend[
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; contourPlotFun,{GrayLevel[1-#]&amp;,10,&amp;quot; 1&amp;quot;,&amp;quot;-1&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; LegendPosition\[Rule]{1.1,-.4}}];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The legend here is misleading, because the min and max values are -2
&lt;br&gt;&amp;gt; and 2, respectively, not -1 and 1. So how can I modify the input to
&lt;br&gt;&amp;gt; ShowLegend to reflect that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92572--Re%3A-Expressing-values-in-the-legend-in-terms-of-original-data-tp19834120p19834120.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833857</id>
	<title>[mg92571] integration</title>
	<published>2008-10-06T01:13:31Z</published>
	<updated>2008-10-06T01:13:31Z</updated>
	<author>
		<name>GR-5</name>
	</author>
	<content type="html">Dear Experts,
&lt;br&gt;I have been trying to simplify(integrate) the following function, but
&lt;br&gt;M6 seems to give a complex answer which i cann't understand.. please
&lt;br&gt;help.
&lt;br&gt;&lt;br&gt;x[s_]=\!\(
&lt;br&gt;\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(s\)]\(Cos[
&lt;br&gt;\*FractionBox[\(r\ t\ \((\(-\[Kappa]0\) + \[Kappa]1 + r\ \[Kappa]1)\)
&lt;br&gt;+ \((1 + r)\)\ S\ \((\[Kappa]0 - \[Kappa]1)\)\ \((\(-Log[S]\) + Log[S
&lt;br&gt;+ r\ t])\)\),
&lt;br&gt;SuperscriptBox[\(r\), \(2\)]]] \[DifferentialD]t\)\)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;RG
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92571--integration-tp19833857p19833857.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833971</id>
	<title>[mg92570] Re: Comparison between Mathematica and other symbolic systems</title>
	<published>2008-10-06T01:13:19Z</published>
	<updated>2008-10-06T01:13:19Z</updated>
	<author>
		<name>PaulDj</name>
	</author>
	<content type="html">On Oct 3, 12:41 pm, Albert Retey &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19833971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;a...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; As part of a presentation to students, I will have to support the
&lt;br&gt;&amp;gt; &amp;gt; claim that &amp;quot;Mathematica is better than other systems when it comes to
&lt;br&gt;&amp;gt; &amp;gt; symbolic computations&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; isn't this quite a stupid claim?
&lt;br&gt;&lt;br&gt;Albert,
&lt;br&gt;&lt;br&gt;yes it is, but that's an edited version, necessary for the post to
&lt;br&gt;appear on this list. Still, I have to disagree with you, as only a
&lt;br&gt;minority of the users switch from system to another depending on their
&lt;br&gt;needs. Most of us probably master one or at most two systems. That's
&lt;br&gt;it.
&lt;br&gt;&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92570--Re%3A-Comparison-between-Mathematica-and-other-symbolic-systems-tp19833971p19833971.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19833925</id>
	<title>[mg92569] Axis in two scales</title>
	<published>2008-10-06T01:13:08Z</published>
	<updated>2008-10-06T01:13:08Z</updated>
	<author>
		<name>Nacho-7</name>
	</author>
	<content type="html">Hello everyone.
&lt;br&gt;&lt;br&gt;I have a dataset in pairs (x,y) that I would like to plot. The main
&lt;br&gt;problem is that the data set has interesting parts in the beginning
&lt;br&gt;that I would like to view clearly.
&lt;br&gt;&lt;br&gt;As an example, create the following table:
&lt;br&gt;&lt;br&gt;t = Table[{x, If[x &amp;lt; .5, Sin[100*x], Sin[x]]}, {x, 0, 5, 0.001}];
&lt;br&gt;ListPlot[t]
&lt;br&gt;&lt;br&gt;You have a very detailed sine in the beginnng and the rest is less
&lt;br&gt;interesting.
&lt;br&gt;&lt;br&gt;I would like to &amp;quot;split&amp;quot; the X axis in two, so the left half of the
&lt;br&gt;plot covers x={0,0.5} and the second half x={0.5,5}] in the same plot
&lt;br&gt;and with the right ticks.
&lt;br&gt;&lt;br&gt;It is like a piecewise axis... is it possible?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92569--Axis-in-two-scales-tp19833925p19833925.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834256</id>
	<title>[mg92568] Re: [mg92562] Re: Comparison between Mathematica and other</title>
	<published>2008-10-06T01:12:57Z</published>
	<updated>2008-10-06T01:12:57Z</updated>
	<author>
		<name>Murray Eisenberg</name>
	</author>
	<content type="html">Still, I would avoid such a highly condensed bit of code and would 
&lt;br&gt;probably first try something more like the following:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;complexGreater[z_, w_] :=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (Re[z] &amp;gt; Re[w]) || (Re[z] == Re[w] &amp;&amp; Im[z] &amp;gt; Im[w])
&lt;br&gt;&amp;nbsp; &amp;nbsp;evalGreater[edata1_, edata2_] :=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; complexGreater[First@edata1, First@edata2]
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;esys = Eigensystem[RandomReal[{-1, 1}, {6, 6}]]
&lt;br&gt;&amp;nbsp; &amp;nbsp;Transpose[Sort[Transpose[esys], evalGreater]]
&lt;br&gt;&lt;br&gt;That separates the data and operation upon the data from the definition 
&lt;br&gt;of the underlying comparison functions. &amp;nbsp;And yes, in complexGreater I'd 
&lt;br&gt;put in the redundant parentheses, or at least the second pair.
&lt;br&gt;&lt;br&gt;Once I did that, I _might_ condense the whole thing if I were going to 
&lt;br&gt;do it just once, but certainly not if it were going to be re-used. 
&lt;br&gt;Then, of course, I'd define a function...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;sortByEigenvalues[esys_]:=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Transpose[Sort[Transpose[esys], evalGreater]]
&lt;br&gt;&lt;br&gt;and then probably redo it so as to eliminate the need for evalGreater:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;sortByEigenvalues[esys_]:=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Transpose[Sort[Transpose[esys],complexGreater[First@#1,First@#2]&amp;]]
&lt;br&gt;&lt;br&gt;I'd still surely want to keep the complexGreater function, as that seems 
&lt;br&gt;a separate &amp;quot;chunk&amp;quot;.
&lt;br&gt;&lt;br&gt;One thing I would still _not_ want to do would be to use the #1[[1]] and 
&lt;br&gt;#2[[1]] forms, which my eye finds too difficult to understand at a 
&lt;br&gt;glance -- too hard to separate the argument number from the Part number.
&lt;br&gt;&lt;br&gt;&lt;br&gt;AES wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Transpose[
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Sort[Transpose[Eigensystem[RandomReal[{-1, 1}, {6, 6}]]],
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; Re[#2[[1]]] &amp;lt; Re[#1[[1]]] ||
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Re[#2[[1]]] == Re[#1[[1]]] &amp;&amp; Im[#2[[1]]] &amp;lt; Im[#1[[1]]] &amp;]]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think this also is a good example of the use of functional programming,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and it helped me to get in to it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; In Mathematica we are thus able to sort any kind of &amp;quot;objects&amp;quot; with any
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; kind
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; of sorting criteria, thanks to the generality of the language.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm really not attempting to re-open the functional vs procedural 
&lt;br&gt;&amp;gt; programming battle here, but I'd offer a couple or three observations on 
&lt;br&gt;&amp;gt; the above:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1) &amp;nbsp;Commands like Sort[ ], Transpose[ ], Re[ ] are evidently &amp;quot;functions&amp;quot; 
&lt;br&gt;&amp;gt; and I suppose these functions contain massive levels of sophisticated 
&lt;br&gt;&amp;gt; functional programming (and pattern matching) in their internals -- -- 
&lt;br&gt;&amp;gt; but just using them as functions doesn't, it seems to me, really 
&lt;br&gt;&amp;gt; constitute hard-core &amp;quot;functional programming&amp;quot; by those users who do 
&lt;br&gt;&amp;gt; this. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Their names are ordinary English or mathematical terms; what they do (or 
&lt;br&gt;&amp;gt; are likely to do) will seem obvious to even the most unsophisticated 
&lt;br&gt;&amp;gt; user; and they can be readily used even by unsophisticated (or entirely 
&lt;br&gt;&amp;gt; procedurally oriented) users, at least in their default modes, without 
&lt;br&gt;&amp;gt; even knowing what functional programming is -- that is, without such 
&lt;br&gt;&amp;gt; users learning (or having to remember) any kind of arcane symbols or 
&lt;br&gt;&amp;gt; functional programming notations or structures, and especially any 
&lt;br&gt;&amp;gt; symbols and notations that are not used in and familiar from, say, 
&lt;br&gt;&amp;gt; elementary algebra or calculus.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Just using -- or even defining for yourself -- a named function (macro, 
&lt;br&gt;&amp;gt; subroutine, whatever) doesn't seem to me &amp;quot;functional programming&amp;quot; at any 
&lt;br&gt;&amp;gt; very meaningful level; and doing this certainly doesn't depend on the 
&lt;br&gt;&amp;gt; &amp;quot;generality&amp;quot; of Mathematica as a language. &amp;nbsp;These same capabilities are 
&lt;br&gt;&amp;gt; certainly present, and commonplace, in what I believe are labeled as 
&lt;br&gt;&amp;gt; crudely &amp;quot;procedural languages&amp;quot; (FORTRAN, BASIC, etc).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2) &amp;nbsp;Now it's certainly true that if you want to modify the default 
&lt;br&gt;&amp;gt; behavior of Sort[ ], you do indeed have to be able to do (or more likely 
&lt;br&gt;&amp;gt; copy and modify) what I'd agree is some very modest level of procedural 
&lt;br&gt;&amp;gt; programming, as well illustrated in the example above:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Re[#2[[1]]] &amp;lt; Re[#1[[1]]] ||
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Re[#2[[1]]] == Re[#1[[1]]] &amp;&amp; Im[#2[[1]]] &amp;lt; Im[#1[[1]]] &amp;]]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But even I (a resolutely procedural type) would have little trouble with 
&lt;br&gt;&amp;gt; this particular example, since the level of 'arcanity' is really pretty 
&lt;br&gt;&amp;gt; limited: &amp;nbsp;The &amp;quot;#n&amp;quot; notation for arguments is familiar from TeX (and what 
&lt;br&gt;&amp;gt; other languages?); the &amp;quot;||&amp;quot; and &amp;quot;&amp;&amp;&amp;quot; notations are familiar from 
&lt;br&gt;&amp;gt; low-level logic classes; and the &amp;quot;==&amp;quot; and &amp;quot;[[ ]]&amp;quot; notations are pretty 
&lt;br&gt;&amp;gt; basic Mathematica. &amp;nbsp;The only 'arcane' thing (for me) is the single &amp;quot;&amp;&amp;quot; 
&lt;br&gt;&amp;gt; at the end, which I have no idea why is there, but I'll dutifully copy 
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 3) &amp;nbsp;As a fallout from this, I'll continue to argue that if Mathematica 
&lt;br&gt;&amp;gt; really wants to expand and serve the widest possible customer base -- 
&lt;br&gt;&amp;gt; e.g., high school math and physics students, college students (and grad 
&lt;br&gt;&amp;gt; students) in nontechnical fields, working engineers in industry, etc. -- 
&lt;br&gt;&amp;gt; for those audiences (aka customers) it should:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1) &amp;nbsp;Substantially sharpen its focus on making and keeping Mathematica 
&lt;br&gt;&amp;gt; simpler and easier to use and much easier to learn for those audiences, 
&lt;br&gt;&amp;gt; including a focus on better documentation and fewer complexities and 
&lt;br&gt;&amp;gt; &amp;quot;gotchas&amp;quot; (which is not imply taking away any of the pattern matching 
&lt;br&gt;&amp;gt; and functional programming underpinnings that are so crucial to other, 
&lt;br&gt;&amp;gt; more sophisticated users of Mathematica); and
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1) Drastically reduce its prices.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;--AES, Oct 2008
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Murray Eisenberg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834256&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murray@...&lt;/a&gt;
&lt;br&gt;Mathematics &amp; Statistics Dept.
&lt;br&gt;Lederle Graduate Research Tower &amp;nbsp; &amp;nbsp; &amp;nbsp;phone 413 549-1020 (H)
&lt;br&gt;University of Massachusetts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;413 545-2859 (W)
&lt;br&gt;710 North Pleasant Street &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fax &amp;nbsp; 413 545-1801
&lt;br&gt;Amherst, MA 01003-9305
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92378--Comparison-between-Mathematica-and-other-symbolic-systems-tp19740797p19834256.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19834247</id>
	<title>[mg92567] Re: [mg92564] Re: Comparison between Mathematica and other symbolic</title>
	<published>2008-10-06T01:12:47Z</published>
	<updated>2008-10-06T01:12:47Z</updated>
	<author>
		<name>Murray Eisenberg</name>
	</author>
	<content type="html">And &amp;quot;remember how to use it between infrequent uses&amp;quot; is a good criterion 
&lt;br&gt;to note when comparing the long-to-type Mathematica names of functions, 
&lt;br&gt;on the one hand, and the terse but often cryptic names of functions in 
&lt;br&gt;some other systems.
&lt;br&gt;&lt;br&gt;AES wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834247&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gc7fsf$eo7$1@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt; &amp;nbsp;Bill Rowe &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834247&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;readnews@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On 10/3/08 at 6:41 AM, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834247&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;awnl@...&lt;/a&gt; (Albert Retey) wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; When choosing a system, I think one needs to answer these questions:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1) can the system solve the problem at hand
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2) how much effort is it to feed the problem to the system
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3) how efficient is the system in calculating the solution
&lt;br&gt;&amp;gt;&amp;gt; Which really says 2) is the most important consideration. But I
&lt;br&gt;&amp;gt;&amp;gt; would expand 2) to be the amount of time to input the problem
&lt;br&gt;&amp;gt;&amp;gt; *and* verify the input has been done correctly. In my
&lt;br&gt;&amp;gt;&amp;gt; experience, the time to verify/debug input is by far where most
&lt;br&gt;&amp;gt;&amp;gt; of the effort is spent.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No mention at all of &amp;quot;how easy it is to learn to use the system&amp;quot; (and 
&lt;br&gt;&amp;gt; remember how to use it between infrequent uses) ?!?!?!?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Murray Eisenberg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19834247&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murray@...&lt;/a&gt;
&lt;br&gt;Mathematics &amp; Statistics Dept.
&lt;br&gt;Lederle Graduate Research Tower &amp;nbsp; &amp;nbsp; &amp;nbsp;phone 413 549-1020 (H)
&lt;br&gt;University of Massachusetts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;413 545-2859 (W)
&lt;br&gt;710 North Pleasant Street &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fax &amp;nbsp; 413 545-1801
&lt;br&gt;Amherst, MA 01003-9305
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-mg92564--Re%3A-Comparison-between-Mathematica-and-other-symbolic-systems-tp19823135p19834247.html" />
</entry>

</feed>
