RosettaCodeData/Task/Element-wise-operations/Stata/element-wise-operations.stata

18 lines
129 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
mata
a = rnormal(5,5,0,1)
b = 2
a:+b
a:-b
a:*b
a:/b
a:^b
a = rnormal(5,5,0,1)
b = rnormal(5,1,0,1)
a:+b
a:-b
a:*b
a:/b
a:^b
end