Deriv

Symbolic differentiation

https://github.com/sgsokol/deriv

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Symbolic differentiation

Basic Info
  • Host: GitHub
  • Owner: sgsokol
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 294 KB
Statistics
  • Stars: 39
  • Watchers: 2
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Created over 11 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.md

Deriv

Symbolic differentiation

The original version of this software was written in R by Andrew Clausen (clausen at econ.upenn.edu) in 2007.

Mark Reid (mark.reid at anu.edu.au) sent a patch, applied 21/2/2009.

In 2014, Andrew has passed the maintenance to Serguei Sokol (sokol at insa-toulouse.fr). Since then, the software was deeply rewritten and completed.

Main new features include: - new derivative engine allowing simple syntaxe for differentiation rules; - many new functions are added to the rule table; - custom differentiation rules can be added by user; - automatic differentiation (AD) of a code with multiple assignement operators; - when taking derivative of a function Deriv() returns a function too. The later can be called with the same arguments as the original function; - can differentiate by variables stored in vectors or lists, e.g. param$theta or x[1], x[2] etc. - simplifications are extended to rational expressions and factorizations; - expression caching is enabled by default; - Deriv() is made the only entry point for all types of entries: * expression * language * function * right hand side of a formula * character string * plain unevaluated code - few unit tests were added to the package

Installation

> devtools::install_github("sgsokol/Deriv")

Usage

In R session do:

> library(Deriv)
> f <- function(x, n=2) x^n+sin(n*x)     # user defined function to diffierentiate
> (df <- Deriv(f))                       # -> c(x = n * x^(n - 1) + n * cos(n * x), n = log(x) * x^n + x * cos(n * x))
> df(2, 3)                               # ->         x         n
                                         # -> 14.880511  7.465518

> Deriv(expression(f(y, 3)), "y")        # -> expression(3 * y^2 + 3 * cos(3 * y))
> Deriv(~ f(y, 3), "y")                  # -> 3 * y^2 + 3 * cos(3 * y)
> y <- 2; eval(Deriv(~ f(y, 3), "y"))    # -> 14.88051

For more information and examples:

> ?Deriv

Owner

  • Name: Serguei Sokol
  • Login: sgsokol
  • Kind: user
  • Location: Toulouse, France
  • Company: @INRAE

GitHub Events

Total
  • Issues event: 2
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 2
Last Year
  • Issues event: 2
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 236
  • Total Committers: 4
  • Avg Commits per committer: 59.0
  • Development Distribution Score (DDS): 0.153
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Serguei Sokol s****r 200
Serguei Sokol s****l@i****r 34
Alejandro Morales m****o@g****m 1
Sokol Serguei s****l@g****r 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 27
  • Total pull requests: 2
  • Average time to close issues: about 2 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 16
  • Total pull request authors: 2
  • Average comments per issue: 4.44
  • Average comments per pull request: 0.5
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: 3 days
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 3.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • notEvil (9)
  • dahtah (2)
  • cwliu007 (2)
  • Non-Contradiction (2)
  • VilmosProkaj (1)
  • alibool (1)
  • phillipbvetter (1)
  • philschus (1)
  • rolfTurner (1)
  • savemark (1)
  • bbolker (1)
  • Rednose22 (1)
  • koenvanbenthem (1)
  • stephenjewson (1)
  • FischerJoBio (1)
Pull Request Authors
  • notEvil (1)
  • AleMorales (1)
Top Labels
Issue Labels
bug (17) enhancement (5) question (1) invalid (1) help wanted (1) wontfix (1)
Pull Request Labels
enhancement (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 225,942 last-month
  • Total docker downloads: 49,386
  • Total dependent packages: 26
  • Total dependent repositories: 44
  • Total versions: 25
  • Total maintainers: 1
cran.r-project.org: Deriv

Symbolic Differentiation

  • Versions: 25
  • Dependent Packages: 26
  • Dependent Repositories: 44
  • Downloads: 225,942 Last month
  • Docker Downloads: 49,386
Rankings
Downloads: 2.5%
Dependent packages count: 2.8%
Dependent repos count: 3.8%
Average: 8.1%
Stargazers count: 8.4%
Forks count: 10.8%
Docker downloads count: 20.2%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • methods * imports
  • testthat * suggests