When I tried to run that code I got an error which is fixed in the
following post.
Copy the text between triple-# and run as a script to decode.
###
code = \
r'''begin 666 -
M'XL( (YU25$"_YU72V_C-A"^^U=,$RPD.39MR7EL@SI #[WNH5OD$@0%)=$V
M"UG2DI1WO;^^,Y1D4X\X:0789H;S^.839SA)Q0:4*",MMWONXRIXG$#S7%U=
MR=P(52IA@.=0Y8E0AJ/L2#9*:)$;;F21XVZ*(E,I7((^[DNYD2(]>3)5F0DH
M-F!V @X\JX2U<!RRR4G9#2-SR+@VD,JM-*!WQ7<,H%%L:*OD"A'LA);Z9$W/
MT].3DY07+OU5X 4=%3]<SF 57#)CHW9+%'<>=+- T0=<B6@(@O5]=07H=IP7
M#3S61589 7(#R,T.:>&0BD3N>?8.&VR<CB5;]8._DQ/[$#__R^^'R.I)AGXK
MWR- B&K$(SF\6<S)RX#E$9*UP//&C4@A/@+:74IBQ2+48&$_!Y0/R G_ SFM
M7\H%KD'P9$=58 BKS%-1"OS*S7M!PP%Q(Z=,"@U;>1"VXGA3PUAQ\$^%%3DL
M\B%<?S6+@CX#,XB"BS9L.6+%^H?JLA-OM;CU1MPL;JWE22I^\,34'4G;W)R$
MM<RWF+$V"A=0*"L0F2GRRRF/9/S.2T6L/9L:?]^NQN\(L4.?UM0&$*'&LYL(
MZN0S@NZT<WI0#&OZ9OC)."IZ@'&\7GSTY>$Y\ZC)HF+7!SW7$-J3N&)W,'_"
MVF01]:Z[8*!)IU,W,7692>-;SUU%D5%$_U(\/,3^;3"SOTM&*[:*J*F&!&!%
M\5$\,.0SB+O1?6\(,IY!@EIQJQ.,Z!!"9A'&0WQNIAQN(*&P^#-0%)D6X^;8
MNLF8;;".L0N.(&A0D.(O:YB'XW[HR6MGF<A]'L#<FLPA'-5_&Y'C:3EY<_.F
MCA,';T:@%V#9P(^'=^5T^DEZ\,F:7V3RI:7R=?(^XNNZF"\=P-E('J6B8<(J
M3=X.@+13DC0?P7H-X6,;KIUF--5Y8&MA6.\NC$QJ4_NY@9?E1Q)S$CCMJ0,*
M;$?VZT9\]-'C!IM4V0Q&1I\Q&'4<3^<0T$F*J+GE!<YX6>9+)O7?7ZI]+)3U
M)VU-'H(A+L6E%O"[P?X8XQ7YAU*%<AIK(DK3V^WU(FO_3/S97=^K<B628IO+
MGWC)GL=$0;M./32#ICI,)BF.KW47%3]*-2..]/KE=0:"S/&R7O^E*M& QV[Y
M9VU*8VAOS"01^1!:TT!;WP-=/;H0BTT+@_:^53@H2+M1:<1,A)$\X5E2978T
M=@9;[/H;5>SMU7ED/$Y [LL"+V]L4L;52M=\:J;3:!&YTCK/=F<&OH]V=-K8
M$B\Z7!ILY.&RF3N<6\@/[^QD&=Y'T</#_?TRO/^\^NS<@E\*(QX)N";H>/UE
MNH!8X$R9IQFF)6FJSXM\;I'#=XX?:79D\<;<L"_2"N_.WV!G3/FX6)3'4K+R
M:'9(2*&V]N]%Q^1IR%/79<-5M<D*;JC@*M> KRNZ>RT5KMR@_$Q*QZ)/,;)4
MSX-=HAY^O9NX=^WY%;:0]#=5OSXL*RHC.H2/_=/:EBF=L1H'J3D-H:E76W/X
M,K4]S %Q+_)J+VCRK-5<UZ5^D:_HI%%W_HVKO6%4W#E0G)^R]*?G. <<#UKI
MH94U@L:J%E8=8:/YC$+*A.DJUGZC^16%Q(6OJ[W-DZ5RLR'#H-5#QJ<50GX)
J7W%Y2J1)&C6[^5+,]B0CN6U1#\A]9KF/%?"5?B:N'&7_ BRU)M3B#@
end
'''
def tug(string):
"""Return text of a uu encoded gzipped text."""
import StringIO, uu, gzip
f1 = StringIO.StringIO()
f2 = StringIO.StringIO()
f2.write(string)
f2.seek(0)
uu.decode(f2, f1)
f2.seek(0)
f2.flush()
f1.seek(0)
text = gzip.GzipFile(fileobj=f1, mode='rb')
msg = text.read()
[f.close() for f in [text, f1, f2]]
return msg
code = tug(code)
import hashlib
assert hashlib.md5(str(code)).hexdigest() == \
'08de3a9cfaeb99c2972b8de63eecf7a3'
###
If that all works then you should be able to print `code` to see it
or try it out by doing the following:
>>> exec(code)
>>> sigma(a*t**2/2, ((a, (3, .02)), (t, '10+/-.1')))
(150.000000000000, 3.16227766016838)
--
You received this message because you are subscribed to the Google Groups
"sympy" 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 http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.