Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Conversation

sritchie
Copy link
Member

@sritchie sritchie commented Jan 4, 2022

From the CHANGELOG:

  • new g/infinite? generic with implementations for all numeric types,
    complex numbers, differential instances. Defaults to false for all other
    types. (Also aliased into sicmutils.env/infinite?).

  • The infix, TeX and JavaScript renderers (->infix, ->TeX and
    ->JavaScript) all properly render ##Inf and ##-Inf. Infix uses the
    Unicode symbol ∞, while ->TeX uses the LaTeX command \infty.
    Javascript's Infinity stands in for ##Inf in generated JS code.

  • g/+, g/-, g// now short circuit if there is a NUMERIC zero on either
    side. This was causing bugs in cases where we allow, say, a scalar to be
    added to a quaternion, and auto-convert the scalar right there (so it adds
    only to the real part). OR in cases, like in the matrix PR, where we convert
    the scalar in addition to <scalar>*I*.

    • This caused some problems with sicmutils.matrix tests that were not well
      typed.
  • The default expt implementation is now available as a function to call
    directly (sicmutils.generic/default-expt) without going through the
    dispatch system.

@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2022

Codecov Report

Merging #448 (477f22a) into main (b8cfeb3) will decrease coverage by 0.02%.
The diff coverage is 89.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #448      +/-   ##
==========================================
- Coverage   85.54%   85.51%   -0.03%     
==========================================
  Files          97       97              
  Lines       13051    13071      +20     
  Branches      710      710              
==========================================
+ Hits        11164    11178      +14     
- Misses       1177     1183       +6     
  Partials      710      710              
Impacted Files Coverage Δ
src/sicmutils/expression/render.cljc 86.36% <82.75%> (-0.99%) ⬇️
src/sicmutils/generic.cljc 79.92% <90.90%> (+0.88%) ⬆️
src/sicmutils/complex.cljc 93.63% <100.00%> (+0.20%) ⬆️
src/sicmutils/differential.cljc 90.41% <100.00%> (+0.35%) ⬆️
src/sicmutils/env.cljc 93.33% <100.00%> (ø)
src/sicmutils/numbers.cljc 81.72% <100.00%> (+0.82%) ⬆️
src/sicmutils/ratio.cljc 85.71% <100.00%> (+0.18%) ⬆️
src/sicmutils/operator.cljc 77.63% <0.00%> (-1.27%) ⬇️
src/sicmutils/numsymb.cljc 91.25% <0.00%> (-0.24%) ⬇️
src/sicmutils/polynomial.cljc 83.01% <0.00%> (-0.16%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8cfeb3...477f22a. Read the comment docs.

(defmethod negative? :default [a]
(< a (v/zero-like a)))

(defgeneric infinite? 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still pending.

Base automatically changed from sritchie/symbolic_fixes to main January 4, 2022 13:40
@sritchie sritchie merged commit e778cde into main Jan 4, 2022
@sritchie sritchie deleted the sritchie/infinite branch January 4, 2022 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants