Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.164 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.68; '*S*': 0.00; 'operator': 0.03; 'modulo': 0.09; 'python': 0.11; 'compute': 0.16; 'i.e.,': 0.16; 'remainder': 0.16; 'thanks,': 0.17; 'variable': 0.18; '(in': 0.22; 'to:name :python-list@python.org': 0.22; 'this?': 0.23; 'defined': 0.27; 'values': 0.27; 'function': 0.29; 'apparently': 0.31; 'kim': 0.31; 'mod': 0.31; 'symbolic': 0.31; 'subject:the': 0.34; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'represent': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'expression': 0.60; 'received:bf1.yahoo.com': 0.60; 'received:mail.bf1.yahoo.com': 0.60; 'tell': 0.60; 'range': 0.61; 'simple': 0.61; 'taking': 0.65; 'between': 0.67; 'header :Reply-To:1': 0.67; 'received:98.139.212': 0.68; 'evaluate': 0.72; 'received:bullet.mail.bf1.yahoo.com': 0.74; '360': 0.84; 'degrees,': 0.84; 'longitude': 0.84 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 136702.9570.bm@omp1002.mail.bf1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1397104347; bh=Z0tzBU3/NRg9ddjocZC3yW2Cz88MfGmMBHF38sdi8no=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=YVqSkp7pG5ZEeqhle2iBKnVNDo43ZNErYYQs9r9uKRkL/w07FjbqBDrc/IxsMkuKbJtTwM8Ur6vIoMbSY5X4EbrCmiJjccTNgPr1Sv3C6juhmPLeRaL1f6+w+kG6Sl1XOjI96EOXxj20kjFBgTUWYpXCGjpLfeAjZSiq6JPDpf8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=CO6j1ZXn4w2Z5vh2Ixsj0CYFkaJx1hdnW74BXtjRhU2Rt/5HBGuBZSahCCgdXwuro90NR6QRnab3pL+ldysYtU8X88aUec07m8S1fOi3d1+1DCCWj8bRkUBWqFnO36RHq9W+idaEEn8HZ8Z3CAt3xGuGdbq75eAtnB/cl5vHP2w=; X-YMail-OSG: rLgqHP4VM1kFUvjoerEZaNp84A3nK7GITCzq5uiMV.pOt4G r4W78jWkbGLwW1T2oB6k8VXjGfjQtmwjGJ_OX6PmeSiGeyQVQkbby5atqS3R g7Fxgrql6RGX342yn2u1Ylo4xCsmuZfjs_b6KbudLsj4bneGGmUTwJoUt6M8 Y5QcofO2spLfUNbCs0xuPhLta5Qp4qkjJ6cmcl3T5GAzYTH68YgfDY5AErQl aD3W9E34wXv2t1ymS_0y1kcjoe8GM6x1C.jHtUcf9Ti8IpUMJX6lA_VDu65M Hi9CAKQvZhXjHt.pSrSEH74CH4UBxY1MVP3F5j8hVt94evnuDkYniV5qKnIR akJvZMF1vFGWsOHRa_3k9eZtEjILdY6j_aK5ZwJE4MzxNtRhYGP4vVHxcsKq c1M1jsViPfjnlUIq8kUR0sfxn0xWs6kwECBWG2W.SJ2lacxBJtfG3psQSVjo HInh8COtqOiV3_ycKoNs0uxxsguh1Fg5efn1JIyU3KRZATrHhQmjdT_XIUFL DW__YfLf6YfBPHelReVdl3_muSxJ6Q7Vxzr.TceDffNbHZG8kJw-- X-Rocket-MIMEInfo: 002.001, SG93IGNhbiBJIGdldCBQeXRob24gdG8gcmVwcmVzZW50IGEgdmFsdWUgb2YgYSBmdW5jdGlvbiBpbiBkZWdyZWVzLCBpLmUuLCB3aXRoIHZhbHVlcyBiZXR3ZWVuIDAgYW5kIDM2MCwgYnkgdGFraW5nIHRoZSAobm9uLWludGVnZXIpIGZ1bmN0aW9uIGV4cHJlc3Npb24gbW9kIDM2MD8KClRoYXQgaXMsIEkgaGF2ZSBhIGZ1bmN0aW9uIHdpdGggbm9uLWludGVnZXIgdmFsdWVzLCBjYWxsZWQgTG9uZ2l0dWRlLCB3aGljaCBpcyBkZWZpbmVkIGluIHRlcm1zIG9mIHRoZSB2YXJpYWJsZSB0LiBJIGp1c3Qgd2FudCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.182.648 Date: Wed, 9 Apr 2014 21:32:27 -0700 (PDT) From: Kim Plofker Subject: Plotting the integer-and-fraction remainder of a function value modulo 360 To: "python-list@python.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1835785293-1064920512-1397104347=:74031" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Kim Plofker List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397104356 news.xs4all.nl 2903 [2001:888:2000:d::a6]:60393 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70007 --1835785293-1064920512-1397104347=:74031 Content-Type: text/plain; charset=us-ascii How can I get Python to represent a value of a function in degrees, i.e., with values between 0 and 360, by taking the (non-integer) function expression mod 360? That is, I have a function with non-integer values, called Longitude, which is defined in terms of the variable t. I just want to plot Longitude modulo 360 for a range of values of t: that is, for every value of t, plot the integer-AND-fraction remainder after dividing Longitude by 360. But Python (in Sage) apparently won't let me use the int function or the // operator on functions defined in terms of a variable: I get a "cannot evaluate symbolic expression numerically" TypeError. How do I do this? There must be a simple way to tell Python that I want it to compute the value of Longitude for a given value of t and then take the integer-and-fraction remainder from dividing by 360. Many thanks, Kim --1835785293-1064920512-1397104347=:74031 Content-Type: text/html; charset=us-ascii
How can I get Python to represent a value of a function in degrees, i.e., with values between 0 and 360, by taking the (non-integer) function expression mod 360?

That is, I have a function with non-integer values, called Longitude, which is defined in terms of the variable t. I just want to plot Longitude modulo 360 for a range of values of t: that is, for every value of t, plot the integer-AND-fraction remainder after dividing Longitude by 360.

But Python (in Sage) apparently won't let me use the int function or the // operator on functions defined in terms of a variable: I get a "cannot evaluate symbolic expression numerically" TypeError. How do I do this? There must be a simple way to tell Python that I want it to compute the value of Longitude for a given value of t and then take the integer-and-fraction remainder from dividing by 360.


Many thanks,
Kim
--1835785293-1064920512-1397104347=:74031--