Displaying 2 results from an estimated 2 matches for "myfunctionname".
2005 Sep 18
3
Attaching effects during onload
I''m trying to attach effects to elements in my onload handler and my
lack of Javascript-fu is showing... I want to call the effect from
the onclick handler of an anchor inside the div I want the effect to
apply to. Here''s what I''m trying to do:
function doOnLoad() {
var filters = document.getElementsByName(''filter'');
for
2010 Dec 07
0
R programing help-newton iterations for the square root
...4*x^3
> p <- polynomial(c(-2,0,1)) # f( x )
> print(p, decreasing = TRUE)
x^2 - 2
> predict (p,3) # f ( 3 )
[1] 7
> predict (deriv(p) ,3) # f ' ( 3 )
[1] 6
> solve(p) # gives the root
[1] -1.414214 1.414214
Basic function skeleton
MyFunctionName
<- function( p, x, itmax = 100, eps = 1e-6, verbose = FALSE)
{
# INITIAL PROCESS
repeat{
# MAIN PROCESS
if( verbose ) {
# LOG PROCESS
}
if( ( CONDITION ) |...