亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? errors.f90

?? 數(shù)值計算常用的出錯處理!可以看看!學(xué)習(xí)一下:)
?? F90
?? 第 1 頁 / 共 4 頁
字號:
!  Discussion:
!
!    This is a simple method, but NOT recommended.   It is easy to
!    find examples for which this method fails.
!
!    Successive terms in the Taylor series are added.
!
!  Modified:
!
!    04 April 2003
!
!  Author:
!
!    John Burkardt
!
!  Reference:
!
!    Cleve Moler and Charles Van Loan,
!    19 Dubious Ways to Compute the Exponential of a Matrix, 25 Years Later,
!    SIAM Review, 
!    Volume 45, Number 1, pages 3-49, March 2003.
!
!  Parameters:
!
!    Input, integer N, the order of the matrix.
!
!    Input, real A(N,N), the matrix whose exponential is desired.
!
!    Output, real A_EXP(N,N), a Taylor estimate for the matrix exponential.
!
  implicit none

  integer n

  real a(n,n)
  real a_exp(n,n)
  real b_exp(n,n)
  real a_k(n,n)
  real fact_k
  integer i
  integer k
  real, parameter :: tol = 0.0E+00

  a_exp(1:n,1:n) = 0.0E+00

  do i = 1, n
    a_exp(i,i) = 1.0E+00
  end do

  a_k(1:n,1:n) = a(1:n,1:n)

  k = 1

  do 

    b_exp(1:n,1:n) = a_exp(1:n,1:n)

    a_exp(1:n,1:n) = a_exp(1:n,1:n) + a_k(1:n,1:n)

    b_exp(1:n,1:n) = abs ( b_exp(1:n,1:n) - a_exp(1:n,1:n) )

    if ( all ( b_exp(1:n,1:n) <= tol ) ) then
      exit
    end if

    k = k + 1
 
    a_k(1:n,1:n) = matmul ( a_k(1:n,1:n), a(1:n,1:n) ) / real ( k )
    
  end do

  return
end
subroutine rpoly_val ( n, p, x, pval )

!*****************************************************************************80
!
!! RPOLY_VAL evaluates a real polynomial.
!
!  Modified:
!
!    08 August 1999
!
!  Author:
!
!    John Burkardt
!
!  Parameters:
!
!    Input, integer N, the degree of the polynomial.
!
!    Input, real PCOF(0:N), the polynomial coefficients.
!    P(I) is the coefficient of X**I.
!
!    Input, real X, the point at which the polynomial is to be evaluated.
!
!    Output, real PVAL, the value of the polynomial at X.
!
  implicit none

  integer n

  integer i
  real p(0:n)
  real pval
  real x

  pval = p(0)
  do i = 1, n
    pval = pval + p(i) * x**i
  end do

  return
end
subroutine rpoly_val_horner ( n, p, x, pval )

!*****************************************************************************80
!
!! RPOLY_VAL_HORNER evaluates a real polynomial using Horner's method.
!
!  Modified:
!
!    08 August 1999
!
!  Author:
!
!    John Burkardt
!
!  Parameters:
!
!    Input, integer N, the degree of the polynomial.
!
!    Input, real PCOF(0:N), the polynomial coefficients.
!    P(I) is the coefficient of X**I.
!
!    Input, real X, the point at which the polynomial is to be evaluated.
!
!    Output, real PVAL, the value of the polynomial at X.
!
  implicit none

  integer n

  integer i
  real p(0:n)
  real pval
  real x

  pval = p(n)
  do i = n - 1, 0, -1
    pval = pval * x + p(i)
  end do

  return
end
subroutine rpoly2_roots ( p, r )

!*****************************************************************************80
!
!! RPOLY2_ROOTS finds the roots of a quadratic polynomial.
!
!  Discussion:
!
!    The standard quadratic formula is used.
!
!  Modified:
!
!    09 August 1999
!
!  Author:
!
!    John Burkardt
!
!  Parameters:
!
!    Input, real PCOF(0:2), the polynomial coefficients.
!    P(I) is the coefficient of X**I.
!
!    Output, complex R(2), the roots of the polynomial.
!
  implicit none

  real disc
  real p(0:2)
  complex r(2)

  if ( p(2) == 0.0E+00 ) then
    write ( *, '(a)' ) ' '
    write ( *, '(a)' ) 'RPOLY2_ROOTS - Fatal error!'
    write ( *, '(a)' ) '  Quadratic coefficient is zero.'
    stop
  end if

  disc = p(1)**2 - 4.0E+00 * p(2) * p(0)

  if ( disc >= 0.0E+00 ) then

    r(1) = cmplx ( 0.5E+00 * ( - p(1) + sqrt ( disc ) ) / p(2), 0.0E+00 )
    r(2) = cmplx ( 0.5E+00 * ( - p(1) - sqrt ( disc ) ) / p(2), 0.0E+00 )

  else if ( disc < 0.0E+00 ) then

    r(1) = cmplx ( - 0.5E+00 * p(1) / p(2), 0.5E+00 * sqrt ( - disc ) / p(2) )
    r(2) = cmplx ( - 0.5E+00 * p(1) / p(2), - 0.5E+00 * sqrt ( - disc ) / p(2) )
 
  end if

  return
end
subroutine rpoly2_roots2 ( p, r, ierror )

!*****************************************************************************80
!
!! RPOLY2_ROOTS2 finds the roots of a quadratic polynomial.
!
!  Discussion:
!
!    An alternate form of the quadratic formula is used.
!
!  Modified:
!
!    10 August 1999
!
!  Author:
!
!    John Burkardt
!
!  Parameters:
!
!    Input, real PCOF(0:2), the polynomial coefficients.
!    P(I) is the coefficient of X**I.
!
!    Output, complex R(2), the roots of the polynomial.
!
!    Output, integer IERROR, error flag.
!    0, no error;
!    1, an error occurred.
!
  implicit none

  real disc
  integer ierror
  real p(0:2)
  complex r(2)

  ierror = 0

  if ( p(2) == 0.0E+00 ) then
    ierror = 1
    write ( *, '(a)' ) ' '
    write ( *, '(a)' ) 'RPOLY2_ROOTS2 - Fatal error!'
    write ( *, '(a)' ) '  Quadratic coefficient is zero.'
    stop
  end if

  disc = p(1)**2 - 4.0E+00 * p(2) * p(0)

  if ( disc >= 0.0E+00 ) then

    if ( - p(1) + sqrt ( disc ) == 0.0E+00 ) then
      ierror = 1
      r(1) = cmplx ( 0.0E+00, 0.0E+00 )
    else
      r(1) = cmplx ( 2.0E+00 * p(0) / ( - p(1) + sqrt ( disc ) ), 0.0E+00 )
    end if

    if ( - p(1) - sqrt ( disc ) == 0.0E+00 ) then
      ierror = 1
      r(2) = cmplx ( 0.0E+00, 0.0E+00 )
    else
      r(2) = cmplx ( 2.0E+00 * p(0) / ( - p(1) - sqrt ( disc ) ), 0.0E+00 )
    end if
!
!  Need to revise this part of the calculation.
!
  else if ( disc < 0.0E+00 ) then

    r(1) = cmplx ( - 0.5E+00 * p(1) / p(2), + 0.5E+00 * sqrt ( - disc ) / p(2) )
    r(2) = cmplx ( - 0.5E+00 * p(1) / p(2), - 0.5E+00 * sqrt ( - disc ) / p(2) )

  end if

  return
end
function samax ( n, x, incx )

!*****************************************************************************80
!
!! SAMAX returns the maximum absolute value of the entries in a vector.
!
!  Modified:
!
!    08 April 1999
!
!  Parameters:
!
!    Input, integer N, the number of entries in the vector.
!
!    Input, real X(*), the vector to be examined.
!
!    Input, integer INCX, the increment between successive entries of X.
!
!    Output, real SAMAX, the maximum absolute value of an element of X.
!
  implicit none

  integer i
  integer incx
  integer ix
  integer n
  real samax
  real x(*)

  if ( n <= 0 ) then

    samax = 0.0E+00

  else if ( n == 1 ) then

    samax = abs ( x(1) )

  else if ( incx == 1 ) then

    samax = abs ( x(1) )

    do i = 2, n
      if ( abs ( x(i) ) > samax ) then
        samax = abs ( x(i) )
      end if
    end do

  else

    if ( incx >= 0 ) then
      ix = 1
    else
      ix = ( - n + 1 ) * incx + 1
    end if

    samax = abs ( x(ix) )
    ix = ix + incx

    do i = 2, n
      if ( abs ( x(ix) ) > samax ) then
        samax = abs ( x(ix) )
      end if
      ix = ix + incx
    end do

  end if

  return
end
subroutine saxpy ( n, sa, x, incx, y, incy )

!*****************************************************************************80
!
!! SAXPY adds a constant times one vector to another.
!
!  Modified:
!
!    08 April 1999
!
!  Parameters:
!
!    Input, integer N, the number of entries in the vector.
!
!    Input, real SA, the multiplier.
!
!    Input, real X(*), the vector to be scaled and added to Y.
!
!    Input, integer INCX, the increment between successive entries of X.
!
!    Input/output, real Y(*), the vector to which a multiple of X is to
!    be added.
!
!    Input, integer INCY, the increment between successive entries of Y.
!
  implicit none
!
  integer i
  integer incx
  integer incy
  integer ix
  integer iy
  integer n
  real sa
  real x(*)
  real y(*)

  if ( n <= 0 ) then

  else if ( sa == 0.0E+00 ) then

  else if ( incx == 1 .and. incy == 1 ) then

    y(1:n) = y(1:n) + sa * x(1:n)

  else

    if ( incx >= 0 ) then
      ix = 1
    else
      ix = ( - n + 1 ) * incx + 1
    end if

    if ( incy >= 0 ) then
      iy = 1
    else
      iy = ( - n + 1 ) * incy + 1
    end if

    do i = 1, n
      y(iy) = y(iy) + sa * x(ix)
      ix = ix + incx
      iy = iy + incy
    end do

  end if

  return
end
subroutine scopy ( n, x, incx, y, incy )

!*****************************************************************************80
!
!! SCOPY copies one real vector into another.
!
!  Modified:
!
!    08 April 1999
!
!  Parameters:
!
!    Input, integer N, the number of entries in the vector.
!
!    Input, real X(*), the vector to be copied into Y.
!
!    Input, integer INCX, the increment between successive entries of X.
!
!    Output, real Y(*), the copy of X.
!
!    Input, integer INCY, the increment between successive elements of Y.
!
  implicit none

  integer i
  integer incx
  integer incy
  integer ix
  integer iy
  integer n
  real x(*)
  real y(*)

  if ( n <= 0 ) then

  else if ( incx == 1 .and. incy == 1 ) then

    y(1:n) = x(1:n)

  else

    if ( incx >= 0 ) then
      ix = 1
    else
      ix = ( - n + 1 ) * incx + 1
    end if

    if ( incy >= 0 ) then
      iy = 1
    else
      iy = ( - n + 1 ) * incy + 1
    end if

    do i = 1, n
      y(iy) = x(ix)
      ix = ix + incx
      iy = iy + incy
    end do

  end if

  return
end
function sdot ( n, x, incx, y, incy )

!*****************************************************************************80
!
!! SDOT forms the dot product of two vectors.
!
!  Modified:
!
!    02 June 2000
!
!  Parameters:
!
!    Input, integer N, the number of entries in the vectors.
!
!    Input, real X(*), one of the vectors to be multiplied.
!
!    Input, integer INCX, the increment between successive entries of X.
!
!    Input, real Y(*), one of the vectors to be multiplied.
!
!    Input, integer INCY, the increment between successive elements of Y.
!
!    Output, real SDOT, the dot product of X and Y.
!
  implicit none

  integer i
  integer incx
  integer incy
  integer ix
  integer iy
  integer n
  real sdot
  real stemp
  real x(*)
  real y(*)

  if ( n <= 0 ) then

    sdot = 0.0E+00

  else if ( incx == 1 .and. incy == 1 ) then

    sdot = dot_product ( x(1:n), y(1:n) )

  else

    if ( incx >= 0 ) then
      ix = 1
    else
      ix = ( - n + 1 ) * incx + 1
    end if

    if ( incy >= 0 ) then
      iy = 1
    else
      iy = ( - n + 1 ) * incy + 1
    end if

    stemp = 0.0E+00
    do i = 1, n
      stemp = stemp + x(ix) * y(iy)
      ix = ix + incx
      iy = iy + incy
    end do

    sdot = stemp

  end if

  return
end
function sdsdot ( n, x, incx, y, incy )

!*****************************************************************************80
!
!! SDSDOT forms the dot product of two vectors using higher precision.
!
!  Modified:
!
!    02 June 2000
!
!  Parameters:
!
!    Input, integer N, the number of entries in the vectors.
!
!    Input, real X(*), one of the vectors to be multiplied.
!
!    Input, integer INCX, the increment between successive entries of X.
!
!    Input, real Y(*), one of the vectors to be multiplied.
!
!    Input, integer INCY, the increment between successive elements of Y.
!
!    Output, real SDSDOT, the dot product of X and Y.
!
  implicit none

  double precision dsdot
  integer i
  integer incx
  integer incy
  integer ix
  integer iy
  integer n
  real sdsdot
  real x(*)
  real y(*)

  if ( n <= 0 ) then

    dsdot = 0.0D+00

  else if ( incx == 1 .and. incy == 1 ) then

    dsdot = dot_product ( dble ( x(1:n) ), dble ( y(1:n) ) )

  else

    if ( incx >= 0 ) then
      ix = 1
    else
      ix = ( - n + 1 ) * incx + 1
    end if

    if ( incy >= 0 ) then
      iy = 1
    else
      iy = ( - n + 1 ) * incy + 1
    end if

    dsdot = 0.0D+00
    do i = 1, n

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
裸体一区二区三区| 国产91精品在线观看| 亚洲综合在线视频| 亚洲欧洲日韩av| 亚洲欧美偷拍三级| 国产美女精品在线| 欧美日韩国产精选| 国产欧美综合在线观看第十页 | 久久综合久久99| 亚洲另类一区二区| 91视频在线看| 日韩欧美一卡二卡| 中文字幕永久在线不卡| 国产精品美女久久久久av爽李琼| 一区二区三区丝袜| 在线观看视频一区| 亚洲激情一二三区| 欧美成人伊人久久综合网| bt欧美亚洲午夜电影天堂| 久久精品72免费观看| 亚洲线精品一区二区三区| 久久综合九色综合欧美就去吻| 在线视频你懂得一区| 丁香一区二区三区| 国产又粗又猛又爽又黄91精品| 亚洲国产精品视频| 一区二区三区在线视频播放| 国产午夜精品理论片a级大结局 | 精品伊人久久久久7777人| 亚洲国产精品久久久久婷婷884 | 麻豆中文一区二区| 亚洲chinese男男1069| 亚洲女厕所小便bbb| 国产精品系列在线| 国产精品视频一区二区三区不卡| 日韩欧美不卡在线观看视频| 欧美一区二区大片| 激情久久久久久久久久久久久久久久| 亚洲国产一区二区a毛片| 国产精品久久久久精k8| 色噜噜狠狠成人中文综合| 免费欧美在线视频| 日韩一级完整毛片| 在线观看亚洲a| 一区二区三区在线看| 色噜噜狠狠成人网p站| 亚洲成人福利片| 一区二区三区在线观看网站| 日韩一区中文字幕| 1024国产精品| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲天堂精品在线观看| 17c精品麻豆一区二区免费| 一区视频在线播放| 亚洲欧美日韩国产成人精品影院| 亚洲色欲色欲www| 一区二区三区国产精品| 亚洲超碰精品一区二区| 视频在线观看一区二区三区| 麻豆精品在线视频| 国产999精品久久久久久绿帽| 成人avav影音| 欧美色视频一区| 欧美成人女星排行榜| 久久久国产一区二区三区四区小说| 国产拍揄自揄精品视频麻豆| 亚洲欧美在线高清| 亚洲一区二区黄色| 蜜臀av一区二区| 国产精品69久久久久水密桃| 成人高清视频免费观看| 一本大道av伊人久久综合| 欧美喷潮久久久xxxxx| 欧美成人精品1314www| 国产精品久久久久桃色tv| 亚洲自拍偷拍欧美| 精品在线播放免费| 99国产精品99久久久久久| 欧美日韩在线播放| 久久久久久99久久久精品网站| 国产精品久久久久久久久免费樱桃| 一区二区三区在线影院| 美洲天堂一区二卡三卡四卡视频| 国产 日韩 欧美大片| 欧洲人成人精品| 精品欧美一区二区三区精品久久 | 久久疯狂做爰流白浆xx| 成人精品视频一区二区三区| 欧美影视一区在线| 久久亚洲一区二区三区明星换脸| 亚洲靠逼com| 久草这里只有精品视频| 色中色一区二区| 精品国产自在久精品国产| 专区另类欧美日韩| 国产一区在线观看麻豆| 色噜噜狠狠色综合欧洲selulu| 久久久久久久综合| 三级欧美在线一区| 色综合久久88色综合天天免费| 日韩欧美三级在线| 亚洲已满18点击进入久久| 国产剧情一区在线| 91精选在线观看| 一区二区三区在线免费| 国产成人一区在线| 日韩免费一区二区三区在线播放| 亚洲欧洲中文日韩久久av乱码| 国产在线视频不卡二| 欧美丰满嫩嫩电影| 亚洲欧美另类小说| 成av人片一区二区| 久久这里只有精品首页| 日本中文在线一区| 欧美在线观看一区二区| 中文字幕在线一区免费| 国产精品一卡二卡在线观看| 欧美一区二区视频观看视频| 一区二区三区精品在线| 不卡欧美aaaaa| 国产欧美一区二区在线观看| 免费高清在线视频一区·| 欧美日韩免费不卡视频一区二区三区| 国产精品国产三级国产a| 国产一区二区三区四区五区入口 | 蜜桃精品视频在线观看| 制服丝袜亚洲色图| 五月婷婷色综合| 欧美日韩的一区二区| 亚洲一区二区三区四区在线| 91麻豆福利精品推荐| 自拍av一区二区三区| 97se亚洲国产综合自在线| 亚洲视频每日更新| 91女神在线视频| 亚洲视频免费在线| 欧美在线免费观看亚洲| 亚洲最新在线观看| 欧美探花视频资源| 亚洲一区二区三区国产| 欧美日韩aaaaa| 日本成人在线一区| 欧美电影免费观看高清完整版在线 | 99免费精品在线| 日韩美女视频19| 日本伦理一区二区| 亚洲国产一区视频| 欧美日本一区二区在线观看| 日韩和欧美的一区| 精品国产三级a在线观看| 国产精品综合久久| 国产精品对白交换视频| 91亚洲精品久久久蜜桃网站| 亚洲免费在线视频| 欧美精品电影在线播放| 久久精品国产99久久6| 久久中文娱乐网| 91麻豆国产在线观看| 亚洲国产一区在线观看| 日韩一区二区精品葵司在线| 韩国av一区二区| 欧美激情中文字幕| 91福利在线观看| 免费一级片91| 国产欧美日韩在线观看| 色香蕉成人二区免费| 日韩国产欧美在线播放| 精品成人一区二区三区| 99精品国产91久久久久久| 五月天一区二区三区| 精品国产91乱码一区二区三区 | 蜜芽一区二区三区| 国产免费久久精品| 91亚洲大成网污www| 首页国产欧美久久| 国产精品精品国产色婷婷| 欧美综合一区二区三区| 极品美女销魂一区二区三区 | 成人av免费在线| 亚洲va韩国va欧美va| 久久久久久日产精品| 色婷婷国产精品久久包臀| 久久精品国产99国产| 亚洲少妇最新在线视频| 日韩一级完整毛片| 91麻豆swag| 国产精品一区二区x88av| 亚洲欧美另类小说视频| 欧美大片日本大片免费观看| 91亚洲精品乱码久久久久久蜜桃| 麻豆国产精品官网| 一区二区三区成人| 26uuu久久综合| 欧美色电影在线| 粉嫩av一区二区三区| 日本va欧美va欧美va精品| 日韩美女视频一区二区| 久久免费电影网| 欧美日韩国产一级片| 99v久久综合狠狠综合久久|