Could you provide the definition of the function axes ? (it's not known to
Sage 7.5.1)
Best regards,
Eric.
Le mardi 7 février 2017 12:57:44 UTC+1, HG a écrit :
>
> I have an error with this file, if I uncomment G+= parametric ... on a
> line, it works without the content of the line.
>
> I don't understand, any help ?
>
> Regards
>
> Henri
>
> G = axes(xmin=-.5,xmax=4,
> ymin=-.5,ymax=4,
> zmin=-.5,zmax=4,
> color='green',thickness=3,
> frame=false,arrow_head=true,
> orientation=(-435, -535, -725 ,115))
> G+= line3d([(0,0,0),(1,2,3)],thickness=7,arrow_head="true")
> var("t")
> G+=
> parametric_plot((cos(t),2*sin(t)/sqrt(13),3*sin(t)/sqrt(13)),(t,0,arcsin(sqrt(13/14))),thickness=8,color
>
> = 'red')
> G+=
> parametric_plot((sin(t)/sqrt(5),2*sin(t)/sqrt(5),cos(t)),(t,0,arccos(3/sqrt(14))),
>
> thickness=8,color = 'purple')
> G+=
> parametric_plot((sin(t)/sqrt(10),cos(t),3*sin(t)/sqrt(10)),(t,0,arccos(2/sqrt(14))),thickness=8,color
>
> = 'orange')
> G.show()
>
> ---------------------------------------------------------------------------BadZipfile
> Traceback (most recent call
> last)<ipython-input-3-ce1ba66f189d> in <module>() 10 G+=
> parametric_plot((sin(t)/sqrt(Integer(5)),Integer(2)*sin(t)/sqrt(Integer(5)),cos(t)),(t,Integer(0),arccos(Integer(3)/sqrt(Integer(14)))),
> thickness=Integer(8),color = 'purple') 11 G+=
> parametric_plot((sin(t)/sqrt(Integer(10)),cos(t),Integer(3)*sin(t)/sqrt(Integer(10))),(t,Integer(0),arccos(Integer(2)/sqrt(Integer(14)))),thickness=Integer(8),color
> = 'orange')---> 12 G.show()
> /home/pi/git/sage/src/sage/plot/plot3d/base.pyx in
> sage.plot.plot3d.base.Graphics3d.show
> (/home/pi/git/sage/src/build/cythonized/sage/plot/plot3d/base.c:20311)()
> 1467 from sage.repl.rich_output import get_display_manager 1468
> dm = get_display_manager()-> 1469 dm.display_immediately(self,
> **kwds) 1470 1471 def _save_image_png(self, filename, **kwds):
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.pyc
> in display_immediately(self, obj, **rich_repr_kwds) 790 """
> 791 plain_text, rich_output = self._rich_output_formatter(obj,
> rich_repr_kwds)--> 792 self._backend.display_immediately(plain_text,
> rich_output) 793 794
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/backend_ipython.pyc
> in display_immediately(self, plain_text, rich_output) 105
> Example plain text output 106 """--> 107 formatted,
> metadata = self.displayhook(plain_text, rich_output) 108 if not
> formatted: 109 return
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/backend_ipython.pyc
> in displayhook(self, plain_text, rich_output) 539 from
> sage.repl.display.jsmol_iframe import JSMolHtml 540 jsmol =
> JSMolHtml(rich_output, height=500)--> 541 return ({u'text/html':
> jsmol.iframe(), 542 u'text/plain':
> plain_text.text.get_unicode(), 543 }, {})
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/display/jsmol_iframe.pyc
> in iframe(self) 259 </iframe> 260 """--> 261
> escaped_inner_html = self.inner_html().replace('"', '"') 262
> iframe = IFRAME_TEMPLATE.format( 263 script=self.js_script(),
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/display/jsmol_iframe.pyc
> in inner_html(self) 235 """ 236 return
> INNER_HTML_TEMPLATE.format(--> 237 script=self.js_script(),
> 238 width=self._width, 239 height=self._height,
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/display/jsmol_iframe.pyc
> in js_script(self) 193 """ 194 script = [r"["]--> 195
> for line in self.script().splitlines(): 196 script +=
> [r" '{0}',".format(line)] 197 script += [r"].join('\n');"]
> /home/pi/git/sage/src/sage/misc/cachefunc.pyx in
> sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__
> (/home/pi/git/sage/src/build/cythonized/sage/misc/cachefunc.c:13453)() 2399
> if self.cache is None: 2400 f = self.f-> 2401
> self.cache = f(self._instance) 2402 return self.cache 2403
> /home/pi/git/sage/local/lib/python2.7/site-packages/sage/repl/display/jsmol_iframe.pyc
> in script(self) 152 script = [] 153 with
> self._zip.open('SCRIPT') as SCRIPT:--> 154 for line in SCRIPT:
> 155 if line.startswith('pmesh'): 156
> command, obj, meshfile = line.split(' ', 3)
> /home/pi/git/sage/local/lib/python/zipfile.pyc in readline(self, limit)
> 568 569 if not self._universal:--> 570 return
> io.BufferedIOBase.readline(self, limit) 571 572 line = ''
> /home/pi/git/sage/local/lib/python/zipfile.pyc in peek(self, n) 606
> """Returns buffered bytes without advancing the position.""" 607
> if n > len(self._readbuffer) - self._offset:--> 608 chunk =
> self.read(n) 609 if len(chunk) > self._offset: 610
> self._readbuffer = chunk + self._readbuffer[self._offset:]
> /home/pi/git/sage/local/lib/python/zipfile.pyc in read(self, n) 630
> data = self.read1(n) 631 elif n > len(buf):--> 632
> data = self.read1(n - len(buf)) 633 else: 634
> return buf
> /home/pi/git/sage/local/lib/python/zipfile.pyc in read1(self, n) 690
> data += self._decompressor.flush() 691 --> 692
> self._update_crc(data, eof=eof) 693 self._readbuffer =
> self._readbuffer[self._offset:] + data 694 self._offset = 0
> /home/pi/git/sage/local/lib/python/zipfile.pyc in _update_crc(self, newdata,
> eof) 645 # Check the CRC if we're at the end of the file 646
> if eof and self._running_crc != self._expected_crc:--> 647
> raise BadZipfile("Bad CRC-32 for file %r" % self.name) 648 649 def
> read1(self, n):
> BadZipfile: Bad CRC-32 for file 'SCRIPT'
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.