xxxxxxxxxx
def _(x=(1,5,1),y=(1,5,1),z=(1,5,1)):
ov=(0,0,0); av=vector(SR,[x,y,z])
bv=vector(SR,[x,y,-z]); cv=av.cross_product(bv)
a=arrow3d(ov,av,color='#ff3636',
width=(x+y+z)/1.5)+text3d('a',av*1.1)
b=arrow3d(ov,bv,color='#3636ff',
width=(x+y+z)/1.5)+text3d('b',bv*1.1)
c=arrow3d(ov,cv,color='#ff36ff',
width=(x+y+z)/1.5)+text3d('axb',cv*1.1)
pretty_print('a={x,y,z}; b={x,y,-z}')
(a+b+c).show()
No comments:
Post a Comment