Skip to content

Commit

Permalink
Merge branch 'release/v0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjp committed Apr 5, 2017
2 parents 819f9c1 + b034d5f commit b45d500
Show file tree
Hide file tree
Showing 58 changed files with 73 additions and 116 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: cmna
Type: Package
Title: Computational Methods for Numerical Analysis
Version: 0.3.0
Date: 2016-09-18
Version: 0.3.1
Date: 2017-04-03
Authors@R: person(given = "James P.", family = "Howard, II",
email = "[email protected]", role = c("aut", "cre"))
URL: https://jameshoward.us/cmna/,
Expand All @@ -16,5 +16,5 @@ License: BSD_2_clause + file LICENSE
LazyLoad: no
Suggests:
testthat
RoxygenNote: 5.0.1
RoxygenNote: 6.0.1
Depends: R (>= 2.10)
2 changes: 1 addition & 1 deletion R/bisection.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bisection <- function(f, a, b, tol = 1e-3, m = 100) {
while (abs(b - a) > tol) {
iter <- iter + 1
if (iter > m) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}
xmid <- (a + b) / 2
Expand Down
7 changes: 4 additions & 3 deletions R/findiff.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@
#' symdiff(sin, pi, 1e-3)
#'
#' @export
findiff <- function(f, x, h = x * sqrt(.Machine$double.eps)) {
findiff <- function(f, x,
h = x * sqrt(.Machine$double.eps)) {
return((f(x + h) - f(x)) / h)
}

#' @rdname findiff
#' @export
symdiff <- function(f, x, h = x * .Machine$double.eps^(1/3)) {

symdiff <- function(f, x,
h = x * .Machine$double.eps^(1/3)) {
return((f(x + h) - f(x - h)) / (2 * h))
}

Expand Down
2 changes: 1 addition & 1 deletion R/gdls.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gdls <- function(A, b, alpha = 0.05, tol = 1e-6, m = 1e5) {

while(vecnorm(oldtheta - theta) > tol) {
if((iter <- iter + 1) > m) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
return(theta)
}
e <- (A %*% theta - b)
Expand Down
4 changes: 2 additions & 2 deletions R/goldsect.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ goldsectmin <- function(f, a, b, tol = 1e-3, m = 100) {
while (abs(b - a) > tol) {
iter <- iter + 1
if (iter > m) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}

Expand Down Expand Up @@ -95,7 +95,7 @@ goldsectmax <- function(f, a, b, tol = 1e-3, m = 100) {
while (abs(b - a) > tol) {
iter <- iter + 1
if (iter > m) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}

Expand Down
6 changes: 3 additions & 3 deletions R/iterativematrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jacobi <- function(A, b, tol = 10e-7, maxiter = 100) {

while(vecnorm(newx - x) > tol) {
if(maxiter > iter) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}
x <- newx
Expand All @@ -100,7 +100,7 @@ gaussseidel <- function(A, b, tol = 10e-7, maxiter = 100) {

while(vecnorm(newx - x) > tol) {
if(maxiter > iter) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}
x <- newx
Expand All @@ -123,7 +123,7 @@ cgmmatrix <- function(A, b, tol = 10e-7, maxiter = 100) {
p <- r <- b - A %*% x
while(vecnorm(r) > tol) {
if(maxiter > iter) {
warning("maximum number of iterations exceeded")
warning("iterations maximum exceeded")
break
}
a <- as.numeric((t(r) %*% r) / t(p) %*% A %*% p)
Expand Down
14 changes: 6 additions & 8 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)

bibentry(bibtype = "Manual",
title = "Computational Methods for Numerical Analysis",
author = person("James P.", "{Howard, II}", email = "[email protected]"),
year = year,
note = note,
bibentry(bibtype = "Book",
title = "Computational Methods for Numerical Analysis with R",
author = person(c("James", "P."), "Howard", role = c("aut", "cre"), email = "[email protected]"),
year = 2017,
publisher = "Chapman and Hall/CRC",
series = "Numerical Analysis and Scientific Computing Series",
url = "https://jameshoward.us/cmna")
1 change: 0 additions & 1 deletion man/adaptint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/bezier.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions man/bilinear.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/bisection.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/bvp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/choleskymatrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion man/cmna-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions man/cubicspline.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/detmatrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/division.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/fibonacci.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/findiff.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions man/gaussint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/gdls.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/giniquintile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/goldsect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions man/gradient.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/heat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/hillclimbing.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/himmelblau.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/horner.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/invmatrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/isPrime.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/iterativematrix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/ivp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b45d500

Please sign in to comment.