~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/calelm/simple.f

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
      subroutine simple(n,d,s)
 
2
c!
 
3
c     Copyright INRIA
 
4
      double precision d(*)
 
5
      real s(*),rmax,slamch
 
6
c
 
7
      rmax=slamch('o')
 
8
c
 
9
      do 10 i=1,n
 
10
      if(abs(d(i)).gt.rmax) then
 
11
        s(i)=real(sign(dble(rmax),d(i)))
 
12
      else
 
13
        s(i)=real(d(i))
 
14
      endif
 
15
   10 continue
 
16
      return
 
17
      end