zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: persistance in zcalc funct defs
Date: Thu, 3 May 2018 08:13:59 -0700	[thread overview]
Message-ID: <c4a62c96-ba6f-f64e-ccd8-92273cc99f8b@eastlink.ca> (raw)
In-Reply-To: <20180503121841.0f21e362@camnpupstephen.cam.scsc.local>

On 03/05/18 04:18 AM, Peter Stephenson wrote:
> On Thu, 03 May 2018 03:38:01 -0700
> "jdh" <dhenman@gmail.com> wrote:
>> In zcalc I did the below (The constants are for 360/(2*pi) and it's
>> inverse)
>>
>> ..> function dtor $1 *  0.0174533
>> ..> function rtod $1 * 57.2958
>>
What an interesting coincidence, I was doing some trig just last night, 
and the conversion from degrees to radians was a minor bother, but a 
bother just the same.  Could we have the choice?  It would seem to be a 
very simple thing to add: "setopt ZCALC_DEGREES" "setopt ZCALC_RADIANS" 
?? ... and of course the internal math would be trivial, but faster and 
more accurate than belaboring it in one's code.  20 minutes work (he 
said, with his laughable naivety ;-)



      reply	other threads:[~2018-05-03 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180503103919epcas1p328bce3d32c6c002be49e49e10ff08ced@epcas1p3.samsung.com>
2018-05-03 10:38 ` jdh
2018-05-03 11:18   ` Peter Stephenson
2018-05-03 15:13     ` Ray Andrews [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4a62c96-ba6f-f64e-ccd8-92273cc99f8b@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).