symengine.rb
symengine.rb copied to clipboard
Rubyfication
For better intuitiveness for Ruby users, some SymEngine constructs can be changed.
@zverok Let's add such instances to a list here.
- [ ]
Basic#to_procinstead ofSymEngine::lambdify(basic) - [ ] Map
SymEngine::Symbolto Ruby Symbols. (x = SymEngine(:x))
About first, I still think the name should be to_proc.
lambdify could be an alias (for those knowing SymEngine better than Ruby), but for this case (matching Python API?..) it should be left as SymEngine::lambdify. So, what I propose here is:
- leave
SymEngine::lambdifybut explicitly state thatBasic#to_procis preferred; - make
Basic#to_procto be able to do everythingSymEngine::lambdifycould do.
WDYT?
Yep. That's better. Updated the checklist to reflect that.