代码搜索:golden
找到约 908 项符合「golden」的源代码
代码结果 908
www.eeworm.com/read/414769/11102612
for golden.for
FUNCTION golden(ax,bx,cx,f,tol,xmin)
REAL golden,ax,bx,cx,tol,xmin,f,R,C
EXTERNAL f
PARAMETER (R=.61803399,C=1.-R)
REAL f1,f2,x0,x1,x2,x3
x0=ax
x3=cx
www.eeworm.com/read/391726/8386093
txt golden.txt
Function GOLDEN(AX, BX, CX, TOL:real;var XMIN:real):real;
const
R = 0.61803399; C = 0.38196601;
Var
X0,X3,X1,X2,F0,F1,F2,F3:real;
begin
X0:=AX;
X3:=CX;
If Abs(CX - BX) > A
www.eeworm.com/read/192256/8392615
txt golden.txt
Function GOLDEN(AX, BX, CX, TOL:real;var XMIN:real):real;
const
R = 0.61803399; C = 0.38196601;
Var
X0,X3,X1,X2,F0,F1,F2,F3:real;
begin
X0:=AX;
X3:=CX;
If Abs(CX - BX) > A
www.eeworm.com/read/291235/8433293
cpp golden.cpp
#include
#include "nr.h"
using namespace std;
namespace {
inline void shft2(DP &a, DP &b, const DP c)
{
a=b;
b=c;
}
inline void shft3(DP &a, DP &b, DP &c, const DP d)
{
www.eeworm.com/read/432700/8582075
m golden.m
function [x,f]=golden(fun,eps,a,b)
x1=a+0.382*(b-a);
x2=a+0.618*(b-a);
f1=feval(fun,x1);
f2=feval(fun,x2);
k=1;
while b-a>=eps
if(f1>f2)
a=x1;
x1=x2;
x2=a+0.618*(
www.eeworm.com/read/387489/8671180
txt golden.txt
Function GOLDEN(AX, BX, CX, TOL:real;var XMIN:real):real;
const
R = 0.61803399; C = 0.38196601;
Var
X0,X3,X1,X2,F0,F1,F2,F3:real;
begin
X0:=AX;
X3:=CX;
If Abs(CX - BX) > A
www.eeworm.com/read/385544/8799357
c golden.c
/* 搏垛尸充恕≤跋い哈み恕 */
/* Coded by T.Takahama, 1998 */
#define SQRT5 2.2360679
#define F1 (3.0-SQRT5)/2.0
#define F2 (SQRT5-1.0)/2.0
#define EPSILON 1.0e-3
int NEval=0;
double evaluate(double x)
{
++NE
www.eeworm.com/read/179705/9343734
c golden.c
/* min/golden.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi
www.eeworm.com/read/374411/9407193
m golden.m
www.eeworm.com/read/373742/9441176
c golden.c
#include
#define R 0.61803399
#define C (1.0-R)
#define SHFT2(a,b,c) (a)=(b);(b)=(c);
#define SHFT3(a,b,c,d) (a)=(b);(b)=(c);(c)=(d);
float golden(float ax, float bx, float cx, float (