I don't know how to do ...

45 views
Skip to first unread message

Henri Girard

unread,
Nov 30, 2019, 3:14:41 AM11/30/19
to sage-s...@googlegroups.com
Hi,

I have done this taiji but it's horizontal and I would like it vertical ?

I can't do it

Any help ?

Kind regards

Henri Girard

def f(x):
    if x<0:
        return sqrt(-x^2-2*x)
    else:
        return -sqrt(-x^2+2*x)
a=plot(f,(x,-2,2),color='grey',fill=sqrt(4-x^2),
fillcolor="black")
xy=circle((0,0),2,color="white")
b=plot(f,(x,-2,2),color="white",fill=-sqrt(4-x^2),
fillcolor="red")

show(a+b+xy)


Bertrand Cayzac

unread,
Nov 30, 2019, 6:25:32 AM11/30/19
to sage-s...@googlegroups.com
Hi Henri, 

I have done this some time ago. Sorry it's in pdf fomat, I need to fix my Sagemath access to get the code in a more deitable form - will do it if you are interested (onlyusing sagemath cell at the moment). 

I remember using vectors to orientate curves. Please have a look. 

Kind regards,
Bertrand

--
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 sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/70b0ad6c-a90f-123e-68fc-e8e5f432758d%40gmail.com.
SESHAT2 V7.pdf

Henri Girard

unread,
Dec 1, 2019, 4:55:52 AM12/1/19
to sage-s...@googlegroups.com
I have done it this way which is easier

p1 = arc((0,0),2,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color='red')
p2 = arc((0,0),2,angle=pi/6,sector=(pi/3,-4*pi/6),color="blue",thickness=2)
p3 = arc((0,-1),1,angle=pi/6,sector=(pi/3,8*pi/6),thickness=2,color="blue")
p4 = arc((0,1),1,angle=pi/6,sector=(pi/3,-4*pi/6),color="red",thickness=2)
show(p1+p2+p3+p4,figsize=5)
Reply all
Reply to author
Forward
0 new messages