LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2019, 09:06 AM   #1
chalew
LQ Newbie
 
Registered: Apr 2019
Posts: 2

Rep: Reputation: Disabled
How to display the result of dt1 an dt2 after the simulation using NS2


We can determine the the distance between two mobile nodes based on X, Y coordinate values using euclidean formula.

assume we have two node i and j they are connected each other. at t1 time position coordinate of node i is (Xit1, Yit1) and position coordinate of node j is (Xjt1, Yjt1). So the distance between the node i and j at time t1 is:
dt1=√(〖(X_jt1-X_it1)〗^2+〖(Y_jt1-Y_it1)〗^2 )

And let after some time at t2 position of the node i is (Xit2, Yit2) and position of node j is (Xjt2, Yjt2). So the distance between the node i and j at time t2 is:
dt2=√(〖(X_jt2-X_it2)〗^2+〖(Y_jt2-Y_it2)〗^2 )

Now, My question is
How to display the result of dt1 an dt2 after the simulation using NS2
 
  


Reply

Tags
ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TORA protocol simulation result problem Aska123 Linux - Software 5 05-25-2014 04:34 AM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 12:03 PM
am not getting any result when am using 'if', without getting result for below script alavala53 Linux - General 3 10-25-2012 06:00 PM
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration