does GNU bc offers a standard math library? [closed] - math

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 months ago.
Improve this question
I'm asking if I need to import some kind of library to perform something like that
echo "cos(1)" | bc
and use BLAS and trigonometric functions in general.

Load the math library with bc -l; the cosine function is named c in this library:
echo "c(1)" | bc -l
This library only supports sine, cosine, artangent, the natural logarithm, the exponential function, and (strangely enough) the n-th order Bessel function.

This site may offer an extended library (with code available). Quite interesting.
http://phodd.net/gnu-bc/
If someone knows similar libraries please share them.

Related

Using embedded R tool in Prolog [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know with using pack 'real', we can use embedded R in Prolog. But I met problems to use this pack. And I didn't find simple examples of using this pack.
Can somebody give a simple example of this pack?
e.g. Loading Prolog values on to R variables and then call R functions on these values (generate a plot by R function or whatever).
The syntax is the same as the SWISH version I think so just look here:
http://swish.swi-prolog.org/example/Rserve.swinb
and
http://swish.swi-prolog.org/example/Rdataframe.swinb

Glicko-2 implementation in R, where to find? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for an R implemention of the excellent Glicko-2 algorithm of Mark Glickman. Thusfar I found this one. Although this is a very nice piece of code I am particularly looking for a code that is able to deal with large data frames with match scores (meaning that it is capable of ranking all the players in the data frame in one go). A bit like the way the PlayerRatings package does the trick with e.g. Elo, Glicko. Unfortenately this package doesn't haven an implementation of the Glicko-2 algorithm.
Does anyone have an idea?
Glicko2 and few other algorithms are available in R package sport. Possible for two-player and multi-player matchups. Available on cran and github. Vignette included, standarized syntax, supported by C++.
Quick snippet
# install.packages("sport")
library(sport)
glicko2 <- glicko2_run(formula = rank|id ~ rider, data = gpheats)
# computation results
print(glicko2)
summary(glicko2)
tail(glicko2$r)
tail(glicko2$pairs)
If you had noticed the fine print at the bottom of Mark Glickman's page you would have seen (in tiny text admittedly)
PlayerRatings, an R package implementation of Glicko, as well as a
few other rating systems
with the link being: https://cran.r-project.org/web/packages/PlayerRatings/

Implementing pathfinding in R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for an existing package that provides pathfinding algorithms for 2d data. I have a regular grid with scores and would like to start out with the A* algorithm.
I am surprised that there doesn't seem to be an R package dealing with such a task (obviously, googling for "a* algorithm in R" gives very unspecific results).
Does anyone know of an existing package and if there is none, can point me towards an efficient way of implementing the algorithm in R?
Thanks!
There is e1071 and igraph. Not sure if they do A*, but they seem to have other shortest past algorithms.

Is there a package for approximating a function using Chebychev Polynomials? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there a package for approximating a function using Chebychev Polynomials?
I was formerly using Matlab and there was a package called Compecon that can approximate a function using Chebychev Polynomials.
I am wondering if there is any packages similar for Julia.
Or is there any packages in C or fortran or Python that can do this?
Thanka a lot!
You might want to check out ApproxFun.jl, it may be relevant.
https://github.com/QuantEcon/CompEcon.jl and related https://github.com/QuantEcon/BasisMatrices.jl have the capacity I believe.

R implementation of group lasso-regularized linear regression [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Does anyone know of any good implementation of group-lasso regularized linear regression in R (or even Matlab)?
Have you looked at GNU Octave? It does its work on command line so you can use it with any language that can read/write to file and execute shell commands to kick it off from within the program.
GNU Octave is featured in the Stanford Machine Learning Course on the chapter of linear regression with multiple variables.
There is the grplasso package in CRAN which I believe is what you are looking for.

Resources