Apr 11, 2015 #1 A ashwini012 Newbie level 3 Joined Mar 27, 2015 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 38 i want to make operation as: Code: for i .....0 to 9 A:= 1 / var(i) ; var is the array of integer. can anybody help me? Thank you.
i want to make operation as: Code: for i .....0 to 9 A:= 1 / var(i) ; var is the array of integer. can anybody help me? Thank you.
Apr 11, 2015 #2 barry Advanced Member level 7 Joined Mar 31, 2005 Messages 6,343 Helped 1,194 Reputation 2,400 Reaction score 1,393 Trophy points 1,393 Location California, USA Activity points 34,548 Could you be more specific?
Apr 12, 2015 #3 K K-J Advanced Member level 2 Joined Jan 26, 2012 Messages 657 Helped 308 Reputation 620 Reaction score 301 Trophy points 1,343 Activity points 7,053 Write a function that takes an array of integers as input and returns one as well implementing what you've described Kevin Jennings
Write a function that takes an array of integers as input and returns one as well implementing what you've described Kevin Jennings
Apr 16, 2015 #4 S sreevenkjan Full Member level 5 Joined Nov 4, 2013 Messages 268 Helped 27 Reputation 54 Reaction score 26 Trophy points 1,308 Location Germany Activity points 3,115 make A as a output array and then put the A(i) = 1/var(i) inside the loop.
Apr 16, 2015 #5 ads-ee Super Moderator Staff member Joined Sep 10, 2013 Messages 7,944 Helped 1,822 Reputation 3,654 Reaction score 1,808 Trophy points 1,393 Location USA Activity points 60,207 ashwini012 said: i want to make operation as: Code: for i .....0 to 9 A:= 1 / var(i) ; var is the array of integer. can anybody help me? Thank you. Click to expand... Are you trying to take the inverse of a matrix or are you attempting to do something else?
ashwini012 said: i want to make operation as: Code: for i .....0 to 9 A:= 1 / var(i) ; var is the array of integer. can anybody help me? Thank you. Click to expand... Are you trying to take the inverse of a matrix or are you attempting to do something else?