[sage-devel] Re: Useful methods for graphics objects

2022-08-25 Thread Kwankyu Lee
On Friday, August 26, 2022 at 2:57:15 AM UTC+9 Nils Bruin wrote: > On Thursday, 25 August 2022 at 07:23:41 UTC-7 Kwankyu Lee wrote: > >> But an intuitive way (or an object-oriented way ?) is to get the >> necessary information from the line segment. Thus if L is the line segment, >> I do p = L.m

[sage-devel] Re: Useful methods for graphics objects

2022-08-25 Thread Nils Bruin
On Thursday, 25 August 2022 at 07:23:41 UTC-7 Kwankyu Lee wrote: > But an intuitive way (or an object-oriented way ?) is to get the necessary > information from the line segment. Thus if L is the line segment, I do p = > L.mid_point(); r = L.length() / 2. Then circle(p, r) will do the work. > T

[sage-devel] Re: Useful methods for graphics objects

2022-08-25 Thread Kwankyu Lee
Let me expand the example a bit. We are given two points. We draw a line segment connecting the two points. Then we want to draw a circle with a diameter the line segment. Certainly we need to compute the center and the radius of the circle. The standard way to do this with Sage is, as Travis d

Re: [sage-devel] Re: 9.7.beta8 build error jupyter_jsmol

2022-08-25 Thread Dima Pasechnik
On Thu, Aug 25, 2022 at 9:46 AM Kazuyoshi Furutaka wrote: > > Logs in my failed case (at work). Thanks. Meanwhile, the fix is on https://trac.sagemath.org/ticket/34421 - positively reviewed. > Kazuyoshi > > 2022年8月25日(木) 12:52 Kazuyoshi Furutaka : >> >> It also happened to me on one of my system

[sage-devel] Re: Useful methods for graphics objects

2022-08-25 Thread Eric Gourgoulhon
Le mercredi 24 août 2022 à 03:14:22 UTC+2, Kwankyu Lee a écrit : > It is embarrassing that an idea of attaching ".length()" method to a line > segment graphics object leads to SageManifolds. We don't need vectors and > inner products to compute the length of a line segment. I agree that it so

[sage-devel] Re: Useful methods for graphics objects

2022-08-25 Thread Eric Gourgoulhon
Hi, Le mercredi 24 août 2022 à 02:18:06 UTC+2, Travis Scrimshaw a écrit : > In general, I think we are best leaving the drawing classes to just > drawing as a separations-of-concerns. > +1 IMHO, line2d and line3d should not be considered as mathematical objects (segmented lines in some Eucli

[sage-devel] Re: AlphabeticStrings()

2022-08-25 Thread 'Travis Scrimshaw' via sage-devel
Hi Doris, What would their images be in this monoid? Their capital letter versions are not generators of the monoid. If you would like to work in a different (free) monoid, then you would need to implement it (not necessarily within Sage). If you just want to extend the encoding, say have ß -