Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4440 > unrolled thread

Using Mathematica

Started by"David Park" <djmpark@comcast.net>
First post2011-08-17 09:56 +0000
Last post2011-08-18 07:27 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Using Mathematica "David Park" <djmpark@comcast.net> - 2011-08-17 09:56 +0000
    Re: Using Mathematica psycho_dad <s.nesseris@gmail.com> - 2011-08-18 07:26 +0000
    Re: Using Mathematica Joseph Gwinn <joegwinn@comcast.net> - 2011-08-18 07:27 +0000

#4440 — Using Mathematica

From"David Park" <djmpark@comcast.net>
Date2011-08-17 09:56 +0000
SubjectUsing Mathematica
Message-ID<j2g37v$1em$1@smc.vnet.net>
There are many postings to MathGroup related to problems of exporting to or
interfacing Mathematica with other applications. Although I recognize that
there may be some cases where this is really useful (acquisition of data or
interfacing with a supercomputer say), in most cases it is nothing more than
exporting to a far inferior medium, or finding ways to organize technical
work, which could be done perfectly well and even better within Mathematica
.

 

Too many users are ready to jump ship before they have even learned to sail
it.  The problem with this is that it detracts from learning how to get the
most out of Mathematica. It is such a new and powerful medium that none of
us truly know how to use it to best advantage. How much time did it take us
to learn how to think and write decently in our own language?  How much more
difficult is it to think about, develop and express technical ideas?

 

Mathematica has superb capabilities for computer algebra, graphics, active
calculation, dynamics and textual discussion, presentation and formatting as
coherent and elegant documents. With Workbench we have an excellent way to
generate, preserve, document and organize technical material - say within a
project or for a book. (Most day to day work can be done in Mathematica.)
WRI has reasonable purchase options for anyone interested in math and
science. Everyone should get it. If they don't want to, then it's "the happy
few".  There is no reason to go to inferior and out-of-date media. There is
no reason to restrict Mathematica use to being a "super programmable
graphical calculator".

 

It's true that there are many ham-fisted features on the fringes of
Mathematica, Grid features that don't work properly, file saving in M8 that
seems to have been bollix up by the advent of CDF (which I consider
questionable and inadequate and now probably unnecessary) and Workbench has
a lot of ragged behavior.  They don't seem to have fully embraced it use
outside of WRI documentation. But none of this is fatal and it can be fixed
- with a little pressure from users.

 

Yesterday there was a question about composing a "book cover" with
Mathematica. It's simple!  We just lay down a piece of paper and write on
it.

 

Here is a sample graphic for the cover, in this case a contour plot for a
complex function. We only need to produce the primitives, not the entire
plot.

 

<< Presentations`  

 

contourprimitives =

  With[

   {f = Function[z, (z (z - 1))/(z - I)],

    zmin = -(1 + I),

    zmax = 1.75 (1 + I),

    contourlist = {0, 0.1, 0.2, .5, 1, 2, 3, 4, 5, 6, 10, 20, 100, 

      500}},

   ComplexCartesianContour[f[z], {z, zmin, zmax}, Abs,

    Contours -> contourlist,

    ColorFunctionScaling -> False,

    ColorFunction -> (ContourColors[contourlist, 

         ColorData["SolarColors"]][#] &),

    ContourLabels -> None,

    PlotRange -> {0, 500}]

   ];

 

Then we define a 6.75 by 9.5 piece of paper, write the various text items on
it, and place the contour primitives by scaling and translating them to
place. Finally we Magnify to the desired size.

 

Draw2D[

  {Text[Style["My Wonderful Book", Bold, 28, FontFamily -> "Times"], {0.3,
8}, {-1, 0}],

   Text[Style["Mr. Author", Bold, 14, FontFamily -> "Times"], {0.3,  7.2},
{-1, 0}],

   contourprimitives // ScaleOp[1.5, {-1, -1}] //  TranslateOp[{2.25, 3}],

   Text[Style["Acme Publishing", Bold, 8, FontFamily -> "Helvetica"], {6,
0.5}, {1, 0}]},

  

  PlotRange -> {{0, 6.75}, {0, 9.5}},

  Background -> LightBlue,

  ImageSize -> 300] // Magnify[#, 6.75 72/300] & 

 

 

 

David Park

djmpark@comcast.net

 <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark/  

[toc] | [next] | [standalone]


#4453

Frompsycho_dad <s.nesseris@gmail.com>
Date2011-08-18 07:26 +0000
Message-ID<j2ieqo$blc$1@smc.vnet.net>
In reply to#4440
On Wednesday, August 17, 2011 11:56:15 AM UTC+2, David Park wrote:

> interfacing with a supercomputer say), in most cases it is nothing more than
> exporting to a far inferior medium, or finding ways to organize technical
> work, which could be done perfectly well and even better within Mathematica

As long as the arXiv does not accept papers written in "Mathematica" instead of LaTex and people in my field still use Fortran and C, I would like Mathematica to play along nicely with these. 

PS I agree that both LaTeX and Fortran are far inferior to M8.

[toc] | [prev] | [next] | [standalone]


#4455

FromJoseph Gwinn <joegwinn@comcast.net>
Date2011-08-18 07:27 +0000
Message-ID<j2iesl$bln$1@smc.vnet.net>
In reply to#4440
Let me preface my comments by noting that I have been a Mathematica user since 
version 1.2.  It would have been v1.0, but I waited for the initial 
teething problems to be resolved - never buy version 1.0 of anything.


In article <j2g37v$1em$1@smc.vnet.net>,
 "David Park" <djmpark@comcast.net> wrote:

> There are many postings to MathGroup related to problems of exporting to or
> interfacing Mathematica with other applications. Although I recognize that
> there may be some cases where this is really useful (acquisition of data or
> interfacing with a supercomputer say), in most cases it is nothing more than
> exporting to a far inferior medium, or finding ways to organize technical
> work, which could be done perfectly well and even better within Mathematica.

Umm.  A lot of us use Mathematica for things like data reduction, and there is 
no future to typing 50,000 points in by hand.


> Too many users are ready to jump ship before they have even learned to sail
> it.  The problem with this is that it detracts from learning how to get the
> most out of Mathematica. It is such a new and powerful medium that none of
> us truly know how to use it to best advantage. How much time did it take us
> to learn how to think and write decently in our own language?  How much more
> difficult is it to think about, develop and express technical ideas?

If the alternative is to type 50,000 point in, can you blame them?

Said another way, if there is no automated and reliable way to get data 
in and out of a tool, however wonderful that tool is, it's perfectly 
rational to find another, better-suited tool.


> Mathematica has superb capabilities for computer algebra, graphics, active
> calculation, dynamics and textual discussion, presentation and formatting as
> coherent and elegant documents. With Workbench we have an excellent way to
> generate, preserve, document and organize technical material - say within a
> project or for a book. (Most day to day work can be done in Mathematica.)
> WRI has reasonable purchase options for anyone interested in math and
> science. Everyone should get it. If they don't want to, then it's "the happy
> few".  There is no reason to go to inferior and out-of-date media. There is
> no reason to restrict Mathematica use to being a "super programmable
> graphical calculator".

Sure there are reasons.  Like speed.  Mathematica is very general, is 
interpreted, and does everything in text files.  More specialized tools 
can be orders of magnitude faster, and with large data sets this becomes 
quite important, to dominant.

I've written C-coded preprocessors to do the first data-reduction step, 
and/or to convert from native format to a Mathematica notebook.  This in the 
days before Mathematica had an Import[] function worth the name.

Now that Import[] can handle reasonable spreadsheet and database file 
formats, one resorts to writing such C-coded utilities only for things 
that are done many times.  For a one-off, one just lets Mathematica grind away.


Back in the day of version 2 or so, I was plotting 100,000 data points 
in a single 2D dot listplot.  The data came from custom Ada code that 
generated the data in a Mathematica-compatible format from the beginning.  This 
was all run on a dedicated Sun workstation.  It took Mathematica something like 
45 minutes to generate that plot, but Mathematica did it and didn't crash, and 
that's what counted.  At the time, there were few alternatives, and we 
didn't have so many plots to make that we couldn't afford the ~hour it 
took per plot.


> It's true that there are many ham-fisted features on the fringes of
> Mathematica, Grid features that don't work properly, file saving in M8 that
> seems to have been bollix up by the advent of CDF (which I consider
> questionable and inadequate and now probably unnecessary) and Workbench has
> a lot of ragged behavior.  They don't seem to have fully embraced it use
> outside of WRI documentation. But none of this is fatal and it can be fixed
> - with a little pressure from users.

Well, this user has another approach:  Steadfastly ignore the new stuff 
until it achieves maturity.  Or, more commonly, vanishes.

But you don't want people to stop producing the new stuff.  While 90% of 
the new stuff will fail, it is the 10% that succeeded in years past that 
is our world today.


Joe Gwinn

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web