Skip to content

Commit 8fd83c2

Browse files
committed
numD() was returning function invisibly. Now it's visible.
1 parent 3ba1825 commit 8fd83c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description: Software to support the introductory *MOSAIC Calculus*
99
applied linear algebra (for data science), and differential equations/dynamics.
1010
Includes grammar-of-graphics-based functions for drawing vector fields, trajectories, etc.
1111
The software is suitable for general use, but intended mainly for teaching calculus.
12-
Version: 0.6.5
12+
Version: 0.6.5.9001
1313
Depends:
1414
R (>= 3.5.0)
1515
Imports:

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Added "linewidth" argument to slice_plot(). Same meaning as in ggplot2.
88
* Added World_oil dataframe
99
* Exporting model_fit() from mosaic
10+
* Fixed bug in numD() that prevented function from being returned visably.
11+
1012

1113
# mosaicCalc 0.6.4
1214

R/numD.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ numD <- function(tilde, ..., .h=NULL) {
7474
the_h <- ifelse(is.null(.h), 0.001, .h)
7575
res = make_d2fdfdy(f, dvars[1], dvars[2], .h = the_h) %>%
7676
bind_params(formals(f))
77-
78-
if (length(dvars)>2){
77+
} else if (length(dvars)>2){
7978
stop("Derivative order greater than 2 not yet implemented.")
8079
}
8180

8281
res
83-
}
8482
}
8583
# =================
8684
# Formal arguments are named to avoid conflicts with the contents of the mathematical function

0 commit comments

Comments
 (0)