« first day (33 days earlier)      last day (688 days later) » 

4:51 AM
@lyxal which commands do i use nsimplify?
 
5:46 AM
@PyGamer0 anything that could return a number
And by that I mean anything that could return a non-Sympy number
 
 
1 hour later…
7:01 AM
@lyxal that would just mean everything right?
 
7:13 AM
@lyxal does vyxal have sympy this like symbols, expanding equations, solving them etc?
 
8:10 AM
ok ok i think i got an idea
for k in atoms:
    # This is for better error messages
    atoms[k].glyph = k
    # Rationalise all outputs (aka sympy.nsimplify)
    atoms[k].call = rationalised(atoms[k].call)
so right after i defined the atoms i rationalise the call
theoretically it should work
 
@PyGamer0 yes.
@PyGamer0 not necessarily
Things like addition will keep Sympy typing if given at least one Sympy object
I more mean things like len
 
8:26 AM
@PyGamer0 @lyxal i just did this
 
@PyGamer0 that does look like it should work
Very clever
 
pyhof is really helping me here lol
here is how the relational operators are now implemented:
    "<": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.lt))),
    ">": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.gt))),
    "=": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.eq))),
    "≠": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.ne))),
    "≥": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.ge))),
    "≤": attrdict(arity=2, call=flax_boolify(vectorised_dyadic(op.le))),
    "≡": attrdict(arity=2, call=flax_boolify(op.eq)),
    "≢": attrdict(arity=2, call=flax_boolify(op.ne)),
 

« first day (33 days earlier)      last day (688 days later) »