Opened 10 years ago

Closed 10 years ago

#1515 closed defect (fixed)

[with patch] ParametricSurface bug

Reported by: robertwb Owned by: robertwb
Priority: major Milestone: sage-2.9
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:


def f(x,y): return cos(x)*sin(y), sin(x)*sin(y), cos(y)+log(tan(y/2))+0.2*x
show(ParametricSurface(f, (srange(0,12.4,0.1), srange(0.1,2,0.1))))

doesn't render. Also

[08:48am] williamstein: This should work but doesn't:
[08:48am] williamstein: S = ParametricSurface(lambda (x,y):(cos(x),
sin(x), y), domain=(range(10),range(10)))

Attachments (1)

parametric-surface.diff (2.0 KB) - added by robertwb 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by robertwb

comment:1 Changed 10 years ago by robertwb

  • Owner changed from was to robertwb
  • Status changed from new to assigned
  • Summary changed from ParametricSurface bug to [with patch] ParametricSurface bug

Now the first example works. Also, the second example almost does

S = ParametricSurface(lambda x,y:(cos(x),sin(x), y), domain=(range(10),range(10)))

(Note the missing ()'s, it expects to arguments, not a tuple).

comment:2 Changed 10 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from assigned to closed

Merged in 2.9.rc0.

Note: See TracTickets for help on using tickets.