Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

inverse of array of integer

Status
Not open for further replies.

ashwini012

Newbie level 3
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.
 

K-J

Advanced Member level 2
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
 

sreevenkjan

Full Member level 5
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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top