Utilizar Maxima y Lyx dos

6
5/13/2018 UtilizarMaximayLyxdos-slidepdf.com http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 1/6 F r a n c e s c C a r m o n a  1 5 d e s e p t i e m b r e d e 2 0 1 1  1 . I n t r o d u c c i ó n  E l s i s t e m a d e á l g e b r a c o m p u t a c i o n a l  M a x i m a  e s u n p r o g r a m a c a p a z d e r e a -  l i z a r c á l c u l o s i m b ó l i c o y n u m é r i c o y d e d i b u j a r g r á c o s 2 D y 3 D , e s c r i t o e n  l e n g u a j e L i s p y p u b l i c a d o b a j o l i c e n c i a G N U G P L . P e r m i t e , p o r e j e m p l o , c a l c u -  l a r d e r i v a d a s e i n t e g r a l e s , h a c e r d e s a r r o l l o s d e T a y l o r , c a l c u l a r l í m i t e s , r e a l i z a r  c á l c u l o m a t r i c i a l , d i b u j a r c u r v a s y s u p e r c i e s , e t c . A d e m á s e s p r o g r a m a b l e . L a  p á g i n a p r i n c i p a l e s  h t t p : / / m a x i m a . s o u r c e f o r g e . n e t  y e s t á i m p l e m e n t a d o e n  L i n u x / U n i x , M S - W i n d o w s y M a c O S X .  M a x i m a  e s t á b a s a d o e n e l s i s t e m a o r i g i -  n a l d e  M a c s y m a  d e s a r r o l l a d o p o r M I T e n l o s a ñ o s 7 0 .  M a x i m a  f u n c i o n a e n m o d o  c o n s o l a , s i n e m b a r g o c o n u n a i n t e r f a z g r á c a c o m o  x M a x i m a  o  w x M a x i m a  , e n t r e  o t r a s , s e f a c i l i t a m u c h o s u u s o .  L  Y  X e s u n p r o c e s a d o r d e d o c u m e n t o s o r i e n t a d o a l a e s c r i t u r a c o n u n e n f o q u e  b a s a d o e n l a e s t r u c t u r a d e l d o c u m e n t o ( W Y S I W Y M ) y n o s i m p l e m e n t e e n s u  a s p e c t o ( W Y S I W Y G ) . L  Y  X c o m b i n a l a p o t e n c i a d e T  E  X / L  A  T  E  X c o n l a f a c i l i d a d  d e u s o d e u n a i n t e r f a z g r á c a . E s t o r e s u l t a m u y i n t e r e s a n t e e n l a c r e a c i ó n d e d o -  c u m e n t o s c o n c o n t e n i d o m a t e m á t i c o ( d i s p o n e d e u n e d i t o r d e e c u a c i o n e s t o t a l -  m e n t e i n t e g r a d o ) y d o c u m e n t o s e s t r u c t u r a d o s c o m o a r t í c u l o s a c a d é m i c o s , t e s i s  o l i b r o s . A d e m á s , p e r m i t e l a i n t e g r a c i ó n n o r m a l i z a d a d e e l e m e n t o s e s e n c i a l e s e n  e s c r i t o s c i e n t í c o s c o m o l o s í n d i c e s d e r e f e r e n c i a s o d e m a t e r i a s . P e r o t a m b i é n  s e p u e d e u s a r L  Y  X p a r a e s c r i b i r u n a c a r t a , u n a n o v e l a , u n a o b r a d e t e a t r o o u n  g u i ó n d e p e l í c u l a . I n c o r p o r a u n a a m p l i a c o l e c c i ó n d e d i s e ñ o s d e d o c u m e n t o s l i s -  t o s p a r a s u u s o . L  Y  X s e p u b l i c a b a j o u n a l i c e n c i a F r e e S o f t w a r e / O p e n S o u r c e ,  f u n c i o n a e n L i n u x / U n i x , M S - W i n d o w s y M a c O S X , y e s t á d i s p o n i b l e e n v a r i o s  i d i o m a s . S u p á g i n a p r i n c i p a l e s  h t t p : / / w w w . l y x . o r g / W e b E s . H o m e  .  1  

Transcript of Utilizar Maxima y Lyx dos

Page 1: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 1/6

M a x i m a y L      

Y    

X , a m i g o s p a r a s i e m p r e    

F r a n c e s c C a r m o n a  

1 5 d e s e p t i e m b r e d e 2 0 1 1  

1 . I n t r o d u c c i ó n  

E l s i s t e m a d e á l g e b r a c o m p u t a c i o n a l   M a x i m a   e s u n p r o g r a m a c a p a z d e r e a -  

l i z a r c á l c u l o s i m b ó l i c o y n u m é r i c o y d e d i b u j a r g r á c o s 2 D y 3 D , e s c r i t o e n  

l e n g u a j e L i s p y p u b l i c a d o b a j o l i c e n c i a G N U G P L . P e r m i t e , p o r e j e m p l o , c a l c u -  

l a r d e r i v a d a s e i n t e g r a l e s , h a c e r d e s a r r o l l o s d e T a y l o r , c a l c u l a r l í m i t e s , r e a l i z a r  

c á l c u l o m a t r i c i a l , d i b u j a r c u r v a s y s u p e r c i e s , e t c . A d e m á s e s p r o g r a m a b l e . L a  

p á g i n a p r i n c i p a l e s   h t t p : / / m a x i m a . s o u r c e f o r g e . n e t   y e s t á i m p l e m e n t a d o e n  

L i n u x / U n i x , M S - W i n d o w s y M a c O S X .  M a x i m a   e s t á b a s a d o e n e l s i s t e m a o r i g i -  

n a l d e   M a c s y m a   d e s a r r o l l a d o p o r M I T e n l o s a ñ o s 7 0 .  M a x i m a   f u n c i o n a e n m o d o  

c o n s o l a , s i n e m b a r g o c o n u n a i n t e r f a z g r á c a c o m o   x M a x i m a   o  w x M a x i m a  , e n t r e  

o t r a s , s e f a c i l i t a m u c h o s u u s o .  

X e s u n p r o c e s a d o r d e d o c u m e n t o s o r i e n t a d o a l a e s c r i t u r a c o n u n e n f o q u e  

b a s a d o e n l a e s t r u c t u r a d e l d o c u m e n t o ( W Y S I W Y M ) y n o s i m p l e m e n t e e n s u  

a s p e c t o ( W Y S I W Y G ) . L  

X c o m b i n a l a p o t e n c i a d e T  

X / L 

X c o n l a f a c i l i d a d  

d e u s o d e u n a i n t e r f a z g r á c a . E s t o r e s u l t a m u y i n t e r e s a n t e e n l a c r e a c i ó n d e d o -  

c u m e n t o s c o n c o n t e n i d o m a t e m á t i c o ( d i s p o n e d e u n e d i t o r d e e c u a c i o n e s t o t a l -  

m e n t e i n t e g r a d o ) y d o c u m e n t o s e s t r u c t u r a d o s c o m o a r t í c u l o s a c a d é m i c o s , t e s i s  

o l i b r o s . A d e m á s , p e r m i t e l a i n t e g r a c i ó n n o r m a l i z a d a d e e l e m e n t o s e s e n c i a l e s e n  

e s c r i t o s c i e n t í c o s c o m o l o s í n d i c e s d e r e f e r e n c i a s o d e m a t e r i a s . P e r o t a m b i é n  

s e p u e d e u s a r L  

X p a r a e s c r i b i r u n a c a r t a , u n a n o v e l a , u n a o b r a d e t e a t r o o u n  

g u i ó n d e p e l í c u l a . I n c o r p o r a u n a a m p l i a c o l e c c i ó n d e d i s e ñ o s d e d o c u m e n t o s l i s -  

t o s p a r a s u u s o . L  

X s e p u b l i c a b a j o u n a l i c e n c i a F r e e S o f t w a r e / O p e n S o u r c e ,  

f u n c i o n a e n L i n u x / U n i x , M S - W i n d o w s y M a c O S X , y e s t á d i s p o n i b l e e n v a r i o s  

i d i o m a s . S u p á g i n a p r i n c i p a l e s   h t t p : / / w w w . l y x . o r g / W e b E s . H o m e  . 

Page 2: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 2/6

E n e s t e a r t í c u l o v a m o s a e x p l i c a r c ó m o i n c o r p o r a r l o s r e s u l t a d o s d e   M a x i -  

m a  e n u n d o c u m e n t o u t i l i z a n d o L  

X / L 

X . E s d e c i r , t e n e m o s u n a s f ó r m u l a s ,  

e c u a c i o n e s o g r á c o s e n   M a x i m a   y q u e r e m o s i n c l u i r l o s e n u n d o c u m e n t o   . l y x   , 

q u e p r o b a b l e m e n t e y a t i e n e o t r o s c o n t e n i d o s .  

T a m b i é n e s p o s i b l e e s c r i b i r u n d o c u m e n t o L  

X / L 

X q u e i n c l u y a , m e z c l a -  

d a s e n t r e l o s p á r r a f o s , i n s t r u c c i o n e s d e   M a x i m a   q u e s e e j e c u t e n a u t o m á t i c a m e n t e  

d u r a n t e e l p r o c e s o d e c o m p i l a c i ó n p a r a i n s e r t a r e l r e s u l t a d o e n e l p r o p i o d o c u -  

m e n t o . E s t o e s t á e x p l i c a d o e n   C á l c u l o y g r a s m o m a t e m á t i c o s e n L  

X u s a n d o  

M a x i m a y G n u p l o t   d e J o s é M a n u e l M i r a R o s   h t t p : / / w e b s . u m . e s / m i r a / t e x /  

m a x i m a _ l a t e x . p h p   y n o e s m a t e r i a d e e s t e a r t í c u l o .  

2 . A n t e s d e c o m p i l a r  

P a r a e v i t a r l a f r u s t a c i ó n i n i c i a l q u e a l i n c o r p o r a r i n f o r m a c i ó n d e   M a x i m a   e n 

u n d o c u m e n t o L  

X l a c o m p i l a c i ó n f a l l e , h a y a l g u n a s c o s a s q u e d e b e m o s h a c e r .  

E n l a s ú l t i m a s v e r s i o n e s d e   w x M a x i m a   l a s i n s t r u c c i o n e s s e m u e s t r a n e n c o -  

l o r y e l c ó d i g o L  

X p u e d e u t i l i z a r e s o s c o l o r e s s i s e d i s p o n e d e l p a q u e t e   c o l o r  

d e L 

X . P a r a e l l o d e b e m o s e d i t a r e l p r e á m b u l o d e l d o c u m e n t o q u e e s t a m o s  

c r e a n d o c o n e l m e n ú   D o c u m e n t o   C o n g u r a c i ó n   P r e á m b u l o L a T e X   y e s c r i b i r  

l a i n s t r u c c i ó n  

\ u s e p a c k a g e [ u s e n a m e s ] { c o l o r }  

A d e m á s n o s d e b e m o s a s e g u r a r q u e n u e s t r o s i s t e m a L  

X d i s p o n e d e t o d o s  

l o s p a q u e t e s d e f u e n t e s n e c e s a r i o s . P a r a m i s o r p r e s a , u n a i n s t a l a c i ó n d e T  

L i v e e n U b u n t u n o d i s p o n e d e l p a q u e t e   t e x l i v e - f o n t s - e x t r a   . E j e c u t a r e n u n a t e r -  

m i n a l  

$ s u d o a p t - g e t i n s t a l l t e x l i v e - f o n t s - e x t r a  

E l p a q u e t e d e f u e n t e s   t e x l i v e - f o n t s - r e c o m m e n d e d   s í q u e e s t á i n s t a l a d o p o r  

d e f e c t o . E n M i k T  

X p a r a W i n d o w s c r e o q u e n o h a y p r o b l e m a .  

O t r o s e r r o r e s d e c o m p i l a c i ó n s e p r o d u c e n a l c o p i a r c ó d i g o L  

X s i n o r d e n  

y s i n s e n t i d o . E s t o l o e x p l i c a r é e n e l s i g u i e n t e a p a r t a d o .  

3 . F ó r m u l a s  

S u p o n g a m o s q u e h e m o s r e a l i z a d o u n c á l c u l o s i m b ó l i c o e n   M a x i m a   y d e s e a m o s  

i n c o r p o r a r l a s i n s t r u c c i o n e s y e l r e s u l t a d o e n u n d o c u m e n t o L  

X / L 

X . 

Page 3: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 3/6

P u e s e s m u y s e n c i l l o . L o s p a s o s s o n l o s s i g u i e n t e s :  

S e l e c c i o n a m o s e n   M a x i m a   l a s i n s t r u c c i o n e s y r e s u l t a d o s ( n o g r á c o s ) .  

C o p i a m o s l a s e l e c c i ó n c o n e l m e n ú   E d i c i ó n   C o p i a r c o m o L a T e X  

E n L 

X u t i l i z a m o s e l i c o n o p a r a i n s e r t a r e l c ó d i g o T  

X ( C t r l + L ) .  

Y n a l m e n t e p e g a m o s e l c o n t e n i d o d e l p o r t a p a p e l e s c o n   E d i t a r   P e g a d o  

e s p e c i a l   T e x t o s i m p l e   ( C t r l + M a y + V ) .  

E n n u e s t r o e j e m p l o , e l c ó d i g o e s  

\ n o i n d e n t  

% % % % % % % % % % % % % % %  

% % % I N P U T :  

\ b e g i n { m i n i p a g e } [ t ] { 8 e x } { \ c o l o r { r e d } \ b f  

\ b e g i n { v e r b a t i m }  

( % i 1 )  

\ e n d { v e r b a t i m } }  

\ e n d { m i n i p a g e }  

\ b e g i n { m i n i p a g e } [ t ] { \ t e x t w i d t h } { \ c o l o r { b l u e }  

\ b e g i n { v e r b a t i m }  

i n t e g r a t e ( x ^ 2 , x ) ;  

\ e n d { v e r b a t i m } }  

\ e n d { m i n i p a g e }  

% % % O U T P U T :  

\ d e f i n e c o l o r { l a b e l c o l o r } { R G B } { 1 0 0 , 0 , 0 }  

\ b e g i n { m a t h } \ d i s p l a y s t y l e  

\ p a r b o x { 8 e x } { \ c o l o r { l a b e l c o l o r } ( \ % o 1 ) }  

\ f r a c { { x } ^ { 3 } } { 3 }  

\ e n d { m a t h }  

% % % % % % % % % % % % % % %  

y e l r e s u l t a d o c o m p i l a d o e s  

Page 4: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 4/6

( % i 1 ) i n t e g r a t e ( x ^ 2 , x ) ;  

( % o 1 )  

x3

3

O b s e r v e m o s q u e l a p r i m e r a i n s t r u c c i ó n d e c ó d i g o   M a x i m a   s e e s c r i b e c o n l e t r a  

m e c a n o g r á c a   t y p e w r i t e r   c o m o s e h a c e s i e m p r e c o n e l c ó d i g o d e c u a l q u i e r  

p r o g r a m a c o m p u t a c i o n a l . E l e n t o r n o   v e r b a t i m   d e L 

X r e p r o d u c e t o d o s l o s  

c a r a c t e r e s t a l c u a l , i n c l u s o l o s e s p a c i o s y e l s í m b o l o % , y e n e s e t i p o d e l e t r a .  

E n L 

X , e l s í m b o l o % s i r v e p a r a a ñ a d i r c o m e n t a r i o s y e l c o m p i l a d o r i g n o r a  

t o d o l o e s c r i t o a p a r t i r d e e s e s í m b o l o h a s t a e l n a l d e l a l í n e a . P o r e s o p a r a  

e s c r i b i r e s e s í m b o l o s e u t i l i z a l a i n s t r u c c i ó n   \ %  c o m o p o r e j e m p l o e n   ( \ % o 1 )  . 

E n e l e n t o r n o   v e r b a t i m   n o e s n e c e s a r i o . E s c r i b i r v a r i o s % e n l a m i s m a l í n e a e s  

u n r e c u r s o m e r a m e n t e e s t é t i c o .  

S i p e g a m o s e l c ó d i g o L  

X d i r e c t a m e n t e c o n C t r l + V , p o d e m o s c r e a r u n  

c o n j u n t o c a ó t i c o d e i n s t r u c c i o n e s e n l a m i s m a l í n e a y u n s í m b o l o % h a r á q u e  

p e r d a m o s p a r t e d e l a s a l i d a . R e c o r d e m o s p u e s q u e h a y q u e p e g a r e l c ó d i g o L  

c o n C t r l + M a y + V p a r a e v i t a r e r r o r e s .  

P a r a p u r i s t a s d e L a T e X  

P a r a l o s p u r i s t a s d e L  

X , e l r e s u l t a d o n o e s ó p t i m o . C o m o s e p u e d e a p r e -  

c i a r e n e l e j e m p l o a n t e r i o r , l a i n s t r u c c i ó n d e s a l i d a ( % o 1 ) n o s e e s c r i b e c o n e l  

m i s m o t i p o d e l e t r a q u e   ( % i 1 )   y q u e d a u n p o c o r a r o . P o d e m o s m e j o r a r e l r e s u l -  

t a d o s i u t i l i z a m o s t a m b i é n a q u í e l t i p o d e l e t r a   t y p e w r i t e r   c o n l a i n s t r u c c i ó n  

\ t t {  t e x t o   }  . E l c ó d i g o m o d i c a d o e s  

\ p a r b o x { 8 e x } { \ c o l o r { l a b e l c o l o r } \ t t { ( \ % o 1 ) } }  

y e l r e s u l t a d o c o m p i l a d o e s  

( % i 1 ) i n t e g r a t e ( x ^ 2 , x ) ;  

( % o 1 )  

x3

3

L a p e r f e c c i ó n a b s o l u t a s e c o n s i g u e c o n l a i n s t r u c c i ó n   \ t t { ( $ \ ! $ \ % o 1 ) }   q u e 

i n t r o d u c e u n p e q u e ñ o e s p a c i o n e g a t i v o c o n   $ \ ! $   . 

( % i 1 ) i n t e g r a t e ( x ^ 2 , x ) ;  

( % o 1 )  

x3

3

Page 5: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 5/6

4 . G r á c o s  

L a i n c l u s i ó n d e g r á c o s d e   M a x i m a   e n u n d o c u m e n t o L  

X t a m b i é n e s t r i v i a l .  

S u p o n g a m o s q u e d i s p o n e m o s d e u n r e s u l t a d o g r á c o c o m o e l s i g u i e n t e  

E n t o n c e s b a s t a r á c o n s i t u a r e l r a t ó n e n c i m a d e l g r á c o y c o n e l b o t ó n d e -  

r e c h o c o p i a r l o a l p o r t a p a p e l e s . N o s v a m o s a l d o c u m e n t o L  

X y p r o c e d e m o s a  

p e g a r l o . N o s o f r e c e r á q u e l o g u a r d e m o s p r i m e r o c o n e l f o r m a t o P N G e n l a c a r -  

p e t a d e l d o c u m e n t o o m e j o r e n u n a c a r p e t a   i m a g e s   a d j u n t a . E n t r e l o s f o r m a t o s  

d e i m a g e n r a s t e r i z a d a o d e m a p a d e b i t s e l e g i r e m o s e l f o r m a t o P N G s o b r e e l  

J P E G , s o b r e t o d o s i t e n e m o s l a i n t e n c i ó n d e c r e a r u n d o c u m e n t o P D F .  

O t r o p r o c e d i m i e n t o e q u i v a l e n t e c o n s i s t e e n g u a r d a r l a i m a g e n d e   M a x i m a  

c o m o a r c h i v o P N G e n l a c a r p e t a   i m a g e s   a s o c i a d a a l d o c u m e n t o q u e e s t a m o s  

r e d a c t a n d o e i n c o r p o r a r l a d e s p u é s e n L  

X c o n   I n s e r t a r  

I m a g e n   o e l i c o n o .  

M e j o r c o n G n u p l o t  

E n c u a l q u i e r g r á c o q u e p r o d u c i m o s c o n   w x M a x i m a   d e s d e e l m e n ú   P l o t  

P l o t 2 D   o  P l o t  P l o t 3 D   , s e n o s o f r e c e l a p o s i b i l i d a d d e u t i l i z a r e l f o r m a t o e n  

l í n e a (  i n l i n e   ) o G n u p l o t . E s t e ú l t i m o d i b u j a e l g r á c o c o n m a y o r c a l i d a d e n  

u n a n u e v a v e n t a n a ( v e r g u r a 1 ) . L a v e n t a n a   G n u p l o t   d i s p o n e d e u n i c o n o p a r a  

c o p i a r e l g r á c o e n e l p o r t a p a p e l e s y a s í p e g a r l o d e s p u é s e n e l d o c u m e n t o c o m o  

u n a r c h i v o P N G .  

M á s c a l i d a d c o n E P S  

E l m e n ú   P l o t  

P l o t 2 D   o  P l o t  

P l o t 3 D   d e  w x M a x i m a   n o s o f r e c e l a p o s i b i l i d a d  

d e g u a r d a r e l g r á c o e n u n a r c h i v o E P S . E s t e f o r m a t o g r á c o g u a r d a i m á g e n e s  

v e c t o r i a l e s y , p o r t a n t o , e s c a l a b l e s s i n p é r d i d a d e c a l i d a d . S i n e m b a r g o , L  

s ó l o l o a d m i t e p a r a s u s a l i d a D V I y P S , p e r o n o p a r a P D F . S i q u e r e m o s o b t e n e r  

n u e s t r o d o c u m e n t o n a l e n u n P D F , L  

X p r o c e d e a c o n v e r t i r l o s g r á c o s E P S  

e n P N G c o n l a c o n s i g u i e n t e p é r d i d a d e t i e m p o ( s i t e n e m o s m u c h o s g r á c o s ) y  

Page 6: Utilizar Maxima y Lyx dos

5/13/2018 Utilizar Maxima y Lyx dos - slidepdf.com

http://slidepdf.com/reader/full/utilizar-maxima-y-lyx-dos 6/6

F i g u r a 1 : G r á c o e n l a v e n t a n a G n u p l o t  

c a l i d a d . A h o r a b i e n , s i l o q u e q u e r e m o s e s l a m á x i m a c a l i d a d e n e l d o c u m e n t o  

i m p r e s o , m e j o r q u e l o s g r á c o s s e a n E P S e i m p r i m i r e m o s e l a r c h i v o P o s t S c r i p t  

d i r e c t a m e n t e e n u n a i m p r e s o r a q u e t e n g a e s t e l e n g u a j e o u t i l i z a n d o e l p r o g r a m a  

d e s i m u l a c i ó n   G h o s t S c r i p t   p a r a c u a l q u i e r o t r a i m p r e s o r a .