0 Members and 2 Guests are viewing this topic.
call _ZeroOP1ld hl,OP1+1ld (hl),'W'call _RclVarSymcall _ToFraccall _PushRealO1call _ZeroOP1ld hl,'W'ld (OP1+1),hlcall _StoOthercall _OP1ExOP2call _PushRealO1call _ZeroOP1ld hl,'I'ld (OP1+1),hlcall _StoOtherret
:Ans→X:{1,abs(Ans:Repeat E‾9>Ans(2:abs(Ans(2){1,fPart(Ans(1)/Ans(2:End:round({X,1}/Ans(1),0:Ans/gcd(Ans(1),Ans(2
A:prgmFRAC:Ans->Str2B:prgmFRAC:Ans->Str3C:prgmFRAC:Ans->Str4"X^("+Str2+"*2)*"+Str3+"="+Str4-->Str1
"X^("+frac(A)+"*2)*"+frac(B)+"="+frac(C)-->Str1
Thanks a lot! Both yours solutions seems to be working well, however apart from the conversion, is there a simple way to create a method which returns the string?Right now I'm using Xeda112358's answer like this:Code: [Select]A:prgmFRAC:Ans->Str2B:prgmFRAC:Ans->Str3C:prgmFRAC:Ans->Str4"X^("+Str2+"*2)*"+Str3+"="+Str4-->Str1However the code has become messy, is there a way to do something like this?Code: [Select]"X^("+frac(A)+"*2)*"+frac(B)+"="+frac(C)-->Str1Maybe creating some sort of hook