Diff does not work in fraction field
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
Given a polynomial ring like
P=QQ[t1,t2,t3]
and its field of fractions
F=QQ(t1,t2,t3)
if we have a function f in F, we ought to be able to take the derivative with diff by the quotient rule.
Something like
diffq:= (var,f)-> (
num:=numerator(f);
den:=denominator(f);
varn:=sub(var,ring num);
newf=(den_diff(varn,num)-num_diff(varn,den))/(den^2)
)
worked for me.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the diff entry point for elements of a fraction field, then compare its handling with the numerator, denominator, and quotient-rule example in the issue. Done means diff accepts a function in QQ(t1,t2,t3) and returns the expected derivative without requiring the workaround; add or run a regression case for that example.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100