[Tugindia] trigonometric curves

geoff.mercer at unsw.adfa.edu.au geoff.mercer at unsw.adfa.edu.au
Wed Apr 20 00:56:13 CEST 2005


> 
> I am trying out pstricks and would like to know how I
> could plot or use pstricks features to draw
> trigonometric curves ? Example y = sin x or y = 4 sin
> 2x with the domain in degrees and or radians ?
> 
> Are there any tutorials that I could use as reference
> ?
> 
> Thanking all.
> 
> Kevin.


pst-infixplot  is what you need.  Available on CTAN.
It converts "normal" mathematical expressions into RPN and vica versa

for example

\infixtoRPN{0.25*sin(-x*180/3.1415)+2.0}%
\psplot[linecolor=red]{0}{20}{\RPN}%


-- 
Dr. Geoffry N. Mercer
Senior Lecturer in Applied Mathematics
School of Physical, Environmental and Mathematical Sciences
University of NSW at ADFA, Campbell, ACT, 2600, AUSTRALIA

Office: Room G12 Science South
Phone:  +61 2 6268 8734    email:  g.mercer at adfa.edu.au
Fax:    +61 2 6268 8786    web:    www.ma.adfa.edu.au/~gnm

Currently on Sabbatical until mid July 2005 at 
IIMS, Massey University, Albany,
Auckland, New Zealand.

----- Original Message -----
From: tugindia-request at tug.org
Date: Tuesday, April 19, 2005 10:02 pm
Subject: tugindia Digest, Vol 28, Issue 8

> Send tugindia mailing list submissions to
> 	tugindia at tug.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://tug.org/mailman/listinfo/tugindia
> or, via email, send a message with subject or body 'help' to
> 	tugindia-request at tug.org
> 
> You can reach the person managing the list at
> 	tugindia-owner at tug.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tugindia digest..."
> 
> 
> Today's Topics:
> 
>   1. RE: HUGE PAGE SHIPPED OUT error (Vinoth Kumar S.)
>   2. Re: Harnessing MetaPost, EMP and TeXnicCenter
>      (Kapil Hari Paranjape)
>   3. trigonometric curves (Kev)
>   4. RE: trigonometric curves (S. venkataraman)
>   5. (no subject) (ram prasad)
> 
> 
> -------------------------------------------------------------------
> ---
> 
> Message: 1
> Date: Mon, 18 Apr 2005 17:17:08 +0530
> From: "Vinoth Kumar S." <vinoth at sps.co.in>
> Subject: [Tugindia] RE: HUGE PAGE SHIPPED OUT error
> To: <tugindia at tug.org>
> Message-ID:
> 	<5433A69D2F16764F88067F5BD9B5991B38DF9C at spsmail.mylapore.sps.co.in>
> Content-Type: text/plain;	charset="iso-8859-1"
> 
> Dear kvmadhav,
> 
>       Already i asked a problem regarding 'huge page shipped out 
> error' and u suggested me a solution to check out a book on net 
> for LATEX and XML.But still i couldnt find out the solution.Could 
> u plz specify me the Internet link of that book.
> 
>          Thanking you.
> 
>   Regards,
>     Vinoth Kumar
> 
> -----Original Message-----
> From: tugindia-request at tug.org [tugindia-request at tug.org]
> Sent: Wednesday, April 13, 2005 3:33 PM
> To: tugindia at tug.org
> Subject: tugindia Digest, Vol 28, Issue 4
> 
> 
> Send tugindia mailing list submissions to
> 	tugindia at tug.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://tug.org/mailman/listinfo/tugindia
> or, via email, send a message with subject or body 'help' to
> 	tugindia-request at tug.org
> 
> You can reach the person managing the list at
> 	tugindia-owner at tug.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tugindia digest..."
> 
> 
> Today's Topics:
> 
>   1. RE: LaTeX Error  (Vinoth Kumar S.)
>   2. Re: RE: LaTeX Error (kvmadhav)
>   3. Re: Need Some Help (E. Krishnan)
>   4. Re: Need Some Help (Habeeb Basha Syed)
>   5. Obtaining sound o/p from pdf file (raghavendra varma)
>   6. Re: Re: [Tugindia] Need Some Help (Duvvuri Venu Gopal)
> 
> 
> -------------------------------------------------------------------
> ---
> 
> Message: 1
> Date: Tue, 12 Apr 2005 17:09:33 +0530
> From: "Vinoth Kumar S." <vinoth at sps.co.in>
> Subject: [Tugindia] RE: LaTeX Error 
> To: <tugindia at tug.org>
> Message-ID:
> 	<5433A69D2F16764F88067F5BD9B5991B382EFE at spsmail.mylapore.sps.co.in>
> Content-Type: text/plain;	charset="iso-8859-1"
> 
> Dear All,
> 
> In a para., I have maintained too many math eqns.
> within the command " \p{xxx $\gamma$..........$\....$ } " - \p for 
> tex to xml conversion.
> 
> Here there is an LaTeX error,
> 
> Huge page cannot be shipped out.
> 
> Please help me, how to ignore this error.
> 
> Thanking you,
> VP
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 12 Apr 2005 20:48:21 +0530
> From: kvmadhav <madhavkopalle at gmail.com>
> Subject: Re: [Tugindia] RE: LaTeX Error
> To: TUGIndia Mailing List <tugindia at tug.org>
> Message-ID: <de06ceb405041208185e26d74d at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> have you checked out a ebook on latex and xml conversion. there is a
> free pdf book on internet whcih will solve your problem
> 
> On Apr 12, 2005 5:09 PM, Vinoth Kumar S. <vinoth at sps.co.in> wrote:
> > Dear All,
> > 
> > In a para., I have maintained too many math eqns.
> > within the command " \p{xxx $\gamma$..........$\....$ } " - \p 
> for tex to xml conversion.
> > 
> > Here there is an LaTeX error,
> > 
> > Huge page cannot be shipped out.
> > 
> > Please help me, how to ignore this error.
> > 
> > Thanking you,
> > VP
> > 
> > _______________________________________________
> > Home:        http://www.tug.org.in/
> > unsubscribe: http://tug.org/mailman/listinfo/tugindia
> > 
> 
> 
> -- 
> regards,
> MK                  
> ---------------------------------------------------------------
> \></ \></ \></ \></ \></ \></ \></ \></ \></\></
> **********************************************************
> Madhav Kopalle
> f-6, gulmohar apts, behind old survey office, borda,
> margao- goa 403602
> 
> 
> email: madhavkopalle at gmail.com
> call me at : 09423317329 /  0832-2713910
> ===============================================================================
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 12 Apr 2005 23:46:05 +0530 (IST)
> From: "E. Krishnan" <ekmath at asianetindia.com>
> Subject: Re: [Tugindia] Need Some Help
> To: TUGIndia Mailing List <tugindia at tug.org>
> Message-ID:
> 	<Pine.LNX.4.44.0504122344550.15044-100000 at localhost.localdomain>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Mon, 11 Apr 2005, Habeeb Basha Syed wrote:
> 
> > 
> > 
> >   Hello all,
> > 
> >    I need to do the following using PSTricks :
> > 
> >    Partition a big area which is either a rectangle or a triangle
> >     into smaller areas of same shape.
> > 
> >    Place a dot in center of each of the smaller areas.
> 
> Can you give some more details? Like your scheme of partitioning?
> 
> 
> -- 
> Krishnan
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Wed, 13 Apr 2005 11:03:59 +0530 (IST)
> From: "Habeeb Basha Syed" <habeeb at iitb.ac.in>
> Subject: Re: [Tugindia] Need Some Help
> To: "TUGIndia Mailing List" <tugindia at tug.org>
> Message-ID: <33263.10.109.17.10.1113370439.squirrel at gpo.iitb.ac.in>
> Content-Type: text/plain;charset=iso-8859-1
> 
> 
> > On Mon, 11 Apr 2005, Habeeb Basha Syed wrote:
> >
> >>
> >>
> >>   Hello all,
> >>
> >>    I need to do the following using PSTricks :
> >>
> >>    Partition a big area which is either a rectangle or a triangle
> >>     into smaller areas of same shape.
> >>
> >>    Place a dot in center of each of the smaller areas.
> >
> > Can you give some more details? Like your scheme of partitioning?
> 
>   Scheme of partitioning (As I plan to do) :
> 
>    use \pspolygon to draw triangle/rectangle
> 
>    use \psline(a,b)(c,d) [where (a,b) lies on one side and (c,d) on
>                           other side]
>      command to draw partition-lines .
> 
>    I need to draw only five or six partition-lines
>    in a given figure.
> >
> --Habeeb
> > --
> > Krishnan
> >
> > _______________________________________________
> > Home:        http://www.tug.org.in/
> > unsubscribe: http://tug.org/mailman/listinfo/tugindia
> >
> 
> 
> -- 
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Tue, 12 Apr 2005 23:07:17 -0700 (PDT)
> From: raghavendra varma <rags_varma at yahoo.com>
> Subject: [Tugindia] Obtaining sound o/p from pdf file
> To: tugindia at tug.org
> Message-ID: <20050413060717.98973.qmail at web54405.mail.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi,
> 
> I want to know how to embed a sound file (.wav, .snd, .mp3)  in  a 
> pdf document. 
> I am using pdflatex to create the pdf document.
> 
> Regards
> Raghavendra Varma
> 
>        	
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
> 
> ------------------------------
> 
> Message: 6
> Date: 13 Apr 2005 07:48:15 -0000
> From: "Duvvuri Venu Gopal" <venugopal_duvvuri at rediffmail.com>
> Subject: Re: Re: [Tugindia] Need Some Help
> To: "TUGIndia Mailing List" <tugindia at tug.org>
> Message-ID: <20050413074815.9316.qmail at webmail50.rediffmail.com>
> Content-Type: text/plain;	charset=iso-8859-1
> 
>> 
> 
> > >>
> > >>    Partition a big area which is either a rectangle or a triangle
> > >>     into smaller areas of same shape.
> > >>
> > >>    Place a dot in center of each of the smaller areas.
> > >
> 
> I think MetaPost is a better option to draw such things. It is now 
> easy to draw MetaPost figures with the help of MPEdit which can be 
> downloaded from tug site.
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> tugindia mailing list
> tugindia at tug.org
> http://tug.org/mailman/listinfo/tugindia
> 
> 
> End of tugindia Digest, Vol 28, Issue 4
> ***************************************
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 18 Apr 2005 08:59:48 -0700
> From: Kapil Hari Paranjape <kapil at imsc.res.in>
> Subject: Re: [Tugindia] Harnessing MetaPost, EMP and TeXnicCenter
> To: Duvvuri Venu Gopal <venugopal_duvvuri at rediffmail.com>,	TUGIndia
> 	Mailing List <tugindia at tug.org>
> Message-ID: <20050418155948.GB15865 at dabba>
> Content-Type: text/plain; charset=us-ascii
> 
> Hello,
> 
> On Mon, Apr 18, 2005 at 05:07:51AM -0000, Duvvuri Venu Gopal wrote:
> <using long lines and non-ASCII characters>
> 
> Please observe the following rules while sending mail:
> 
> 1. Wrap long lines.
> 2. Limit message text to ASCII.
> 
> Thanks and regards,
> 
> Kapil.
> --
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 18 Apr 2005 10:42:55 -0700 (PDT)
> From: Kev <sooltaal at yahoo.com>
> Subject: [Tugindia] trigonometric curves
> To: tugindia at tug.org
> Message-ID: <20050418174255.70216.qmail at web52007.mail.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hello All,
> 
> I am trying out pstricks and would like to know how I
> could plot or use pstricks features to draw
> trigonometric curves ? Example y = sin x or y = 4 sin
> 2x with the domain in degrees and or radians ?
> 
> Are there any tutorials that I could use as reference
> ?
> 
> Thanking all.
> 
> Kevin.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 19 Apr 2005 10:42:00 +0530
> From: "S. venkataraman" <svenkat at ignou.ac.in>
> Subject: RE: [Tugindia] trigonometric curves
> To: "TUGIndia Mailing List" <tugindia at tug.org>
> Message-ID:
> 	<971D26385A506B4F8D47268B8C707DED088ADD at mails.maildomain.com>
> Content-Type: text/plain;	charset="iso-8859-1"
> 
> 
> 
> I am trying out pstricks and would like to know how I
> could plot or use pstricks features to draw
> trigonometric curves ? Example y = sin x or y = 4 sin
> 2x with the domain in degrees and or radians ?
> 
> Are there any tutorials that I could use as reference
> ?
> 
> Thanking all.
> 
> Kevin.
> Hi!
> The PStricks documentation contains some examples.
> You have two choices. Either you can calculate the 
> values, using Gnumeric or openoffice Calc for example
> and ask PStricks to plot the graph or you can directly 
> use postscript commands.  Both these are explained in the
> obsolete version of the manual(van zandt's original manual.)
> Also, Herbert Voss has lots of examples in his web site.
> I don't recall the URL right now, but you can easily by doing 
> a google search.
> all the best
> S. Venkataraman.
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: 19 Apr 2005 09:38:49 -0000
> From: "ram prasad" <rkp_ce at rediffmail.com>
> Subject: [Tugindia] (no subject)
> To: tugindia at tug.org
> Message-ID: <20050419093849.26709.qmail at webmail18.rediffmail.com>
> Content-Type: text/plain;	charset=iso-8859-1
> 
>> Dear users,
> 
> I wish to have figures caption and table caption like given below. 
> Pl suggest changes in the following code. The codes give below 
> statement in bold font, i need some part in bold (Fig. 1)  and 
> some not in bold font.
> 
> Fig. 1. Transimissivity value at nodes
> 
> % ASCE-like figure labels
> 
> \renewcommand{\figurename}{Fig.}
> 
> \renewcommand{\tablename}{Table}
> 
> \newsavebox{\TempBoxb}
> 
> \newlength{\TempBoxl}
> 
> \setlength{\belowcaptionskip}{1.5ex}
> 
> \renewcommand{\@makecaption}[2]{%
> 
> \savebox{\TempBoxb}{\rule{0em}{3ex}\sffamily\bfseries\normalsize#1.%
> 
> \makebox[1em]{}\sffamily\bfseries\normalsize#2}%
> 
> \settowidth{\TempBoxl}{\usebox{\TempBoxb}}
> 
> \ifthenelse{\lengthtest{\TempBoxl > \textwidth}}
> 
> {\sffamily\bfseries\normalsize#1. 
> \sffamily\bfseries\normalsize#2\par}%
> {\centering \usebox{\TempBoxb}}
> 
> \vskip\belowcaptionskip}%
> 
> Thanks in anticipation
> 
> R. K. Prasad
> 
> 
> ------------------------------
> 
> _______________________________________________
> tugindia mailing list
> tugindia at tug.org
> http://tug.org/mailman/listinfo/tugindia
> 
> 
> End of tugindia Digest, Vol 28, Issue 8
> ***************************************
>



More information about the tugindia mailing list