Escolar Documentos
Profissional Documentos
Cultura Documentos
TypeA = SIZE(A)
TypeB = SIZE(B)
;If the DOUBLE keyword is not set then the internal precision and
;result are identical to the type of input.
if N_ELEMENTS(Double) eq 0 then $
Double = (TypeA[TypeA[0]+1] eq 5 or TypeB[TypeB[0]+1] eq 5)
RETURN, xOut
END
IDL> P= [[1.0,1.0,2.0],[-1.0,2.0,3.0],[1.0,1.0,-1.0]]
IDL> N=[2.0,4.0,1.0]
IDL> result=cramer(P,N)
% Compiled module: DETERM.
% Compiled module: COND.
% Compiled module: NORM.
IDL> print, result
-0.111111 1.44444 0.333333
IDL> A=[4,3,6]
IDL> B=[2,-1,-4]
IDL> A[0,*]*B[0,*]+A[1,*]*B[1,*]+A[2,*]*B[2,*]
-19
IDL> A=[1,-2,0]
IDL> B=[2,1,0]
IDL> C=[1,-2,2]
IDL> AXB=[(B(2,*)*A(1,*)-B(1,*)*A(2,*)),(B(0,*)*A(2,*)-
B(2,*)*A(0,*)),(B(1,*)*A(0,*)-B(0,*)*A(1,*))]
IDL> P= [[1.0,1.0,2.0],[-1.0,2.0,3.0],[1.0,1.0,-1.0]]
IDL> N= [[2.0,3.0,2.0],[-2.0,2.0,1.0],[3.0,1.0,-2.0]]
IDL> print, transpose((P*N)
print, transpose((P*N)
^
% Syntax error.
IDL> print, transpose(P*N)
2.00000 2.00000 3.00000
3.00000 4.00000 1.00000
4.00000 3.00000 2.00000
IDL> print, transpose(P)*transpose(N)
2.00000 2.00000 3.00000
3.00000 4.00000 1.00000
4.00000 3.00000 2.00000
pro PREGUNTA_7
file='D:\trabajos\Curso de Radar\Copia de TAREA\DATA\datos.dat';
ruteamos la data
data_struct = READ_ASCII(file, DATA_START=3); es una estructura
data=data_struct.field1 ; extraemos los datos
LATITUD=data(0,*); primera columna
LONGITUD=data(1,*); segunda columna
TEMPERATURA=data(2,*); tercera columna
MEDIA=MEAN(TEMPERATURA)
MINIMO=MIN(TEMPERATURA)
MAXIMO=MAX(TEMPERATURA)
print, MEDIA
print, MINIMO
print, MAXIMO
print, '#############FIN DEL PROCESAMIETO################'
end