<< Chapter < Page Chapter >> Page >

Compute, save, and apply the conversion factor f2

Following that, a conversion factor named f2 is computed that can be used to convert a value expressed in inches to the same value expressed in feet. Thisconversion factor is based on the known fact that there are 12 inches in a foot.

The factor named f2 is applied to the distance that is now expressed in inches converting it to a new value that expresses the same distance in feet(5280 feet).

Analysis of the units

The comment that reads

//inch*feet/inch = feet

is an analysis that shows the units that will result from applying the conversion factor to the distance at this point. As you can see, the inchterms will cancel and the result will be in feet.

Compute, save, and apply the conversion factor f3

Following that, a conversion factor named f3 is computed that can be used to convert a value expressed in feet to the same value expressed in miles. Thisconversion factor is based on the known fact that there are 5280 feet in a mile.

The factor named f3 is applied to the distance that is now expressed in feet converting it to a new value that expresses the same distance in miles (1mile).

Analysis of the units

The comment that reads

//feet*mile/feet = mile

is an analysis that shows the units that will result from applying the conversion factor to the distance at this point. As you can see, the feet termswill cancel and the result will be in miles.

That satisfies the specifications

That satisfies the original program specification. However, I mentioned earlier that if a conversion factor X can be used to convert from A-units toB-units, the reciprocal of X can be used to convert from B-units back to A-units.

Reversing the process

Continuing with Listing 1 , the comment that reads

//(pace/inch)*(inch/foot)*(foot/mile) = pace/mile

shows the units that survive from a product of the reciprocals of f1 , f2 , and f3 . As you can see, after canceling out inches and feet, the result of multiplying the reciprocals of those three conversion factors is a new conversionfactor that can be used to convert a value expressed in miles to a new value that represents the same distance expressed in paces.

That conversion factor is applied to the distance in miles producing an output of 2112, which unsurprisingly, is the distance in paces that we startedoff with.

More substantive JavaScript examples

Assume that you drop a rock from a balloon at a height of 10000 feet above the ground, Further assume that the positive direction is up and the negativedirection is down.

What would be the height of the rock above the ground at the end of ten seconds? What would be the height of the rock at the end of twenty seconds?

An equation relating distance, acceleration, and time

As you will learn in a future module, the following equation gives the distance that the rock will travel as a function of time assuming that the initial velocity is zero . (The assumption is that the rock was simply dropped and not thrown .)

d = 0.5 * g * t^2

where

  • d is the distance traveled
  • g is the acceleration of gravity (approximately -32.2 ft/s^2)
  • t is time is seconds

Questions & Answers

why one should read psychology
MAMATA Reply
cause of daibites is?
Suman
memory of development brain of the human psychologist
SERAJ Reply
?
lord
hlo
Ananya
Haw are you?
Shilan
hi
zge
hello
Emm
usef
hi
Gil
Haw are you?
Shilan
Aha ok
Shilan
hi
Daniella
waasup
Isaiah
hello
Sara
hello
androi
Haw are you
Shilan
im ok you
Daniella
Me to
Shilan
Thanks
Shilan
What's going?
Shilan
working
Daniella
hey everyone this Mahmoud
Mahmoud
is
Mahmoud
Fine
Shilan
Hello
Jobe
how is it going people?
Tomasz
kind
Alter
thanks
Alter
hi..!
Alter
yes we'll
Alter
yes we'll
Alter
hi
Suman
hi
Raynard
how did psychology begin?
Valerie Reply
of psychologys commencement, the traces can be seen in the work of Aristotle, where he talk about soul and body, likewise work in durrant, de anima, all these were somewhere supporting dualism, in which soul could exist separately from body
amaan
but if you talk about the moder psychology, Gustav fechner, is credited with performing scientific experiments, basis of his experiments in psychology with his studies perception.
amaan
hi, can you help me to find research related to child truma
Heba
yes same here I have cptsd and am looking for more info since my doctor doesn't know what to do I want to know what I can
Mark
does psychology deal with love?
Mohammed Reply
Maybe, i think
edem
I definitely would say yes
Clara
how so
Isaiah
*triarchic
Meredith
there are so many different reasons why you can fall in love with someone, many of them develope subconsciously -> psychology
Clara
love messes with the brain, a lot, ergo I believe that Psychology does indeed deal with love
I would like an example as to what and how you think it deals with.
Tyler
how can I discover that this individual has a long-term memory and shot- term memory?
Namuaha
yes,
Shonna
love as different feelings towards a person, an idea maybe , we can love an idea about a person or something so what am saying is that psychology doubtless deals and studies feelings wish love is one of
Johan
by testing his memory
Johan
psychology deals with love bcz basically psy deals with all kinds of feelings
Johan
love as different feelings towards a person, an idea maybe , we can love an idea about a person or something so what am saying is that psychology doubtless deals and studies feelings wish love is one of
Johan
what is synapse
Katie Reply
In the central nervous system, a synapse is a small gap at the end of a neuron that allows a signal to pass from one neuron to the next. synapse are found where nerve cells connect with other nerve cells
Najeem
a synapse the connection is where a neuron cell connects to another neuron cell.
Shaun
good
Jobe
what is psychology
Jobe
can you do auto book auto
Mariah Reply
WHT u mean?
usef
yes
MD
heyy, may i join the conversation please?
edem Reply
yes of course
Najeem
how to avoid theory of bias confirmation in real life
Scar
yes
Jobe
hello
Bhavin
hello to all
Genevieve
hey, may I join the conversation?
samra
salaam
Ibrahim
so i cn even do this after ba hons in psychology?
Avneet
the only eligibility criteria is that you should have 50% of aggregate in your psychology papers. (bachelors)
syeda
okay thank you so much❤ have a lovely day🙂
Avneet
you're welcome. glad it helped ^_^
syeda
To pursue a career as a psychotherapist you'll have to do your bachelors in psychology. (bsc honors is preferable). since there are many fields and you've chosen as a therapist. a masters degree in clinical psychology or therapy and family counseling is preferable.
syeda
so i cn even do this after ba hons in psychology?
Avneet
yes you can.
syeda
you're welcome. glad it helped ^_^
syeda
hello
Vhikkie
yh
Parker
hello
Avneet
is there any psychotherapist here? i need to know the qualification one hve to pursue.
Avneet
I'm clinic psychologist...
Shilan
Hey. I'm pursuing BA in Clinical Psychology
Aakarshan
the only eligibility criteria is that you should have 50% of aggregate in your psychology papers. (bachelors)
syeda
hello
Vhikkie
who is the father of psychology
Richy Reply
aristatil
Ramadevi
and please, how would you guys, describe the study of psychology at college ?
edem
psychologist student?
Aspen
i mean not yet but am about to start college so wanna know how is it(college in general and psychology course) please
edem
Psychology is the study of mind and behaviour. So if you will take psychology as a subject so you will get to know how your everything (physical, mental, social, spiritual aspects) effects your behaviour
sakina
With this brief knowledge you can help people to cope up with their problems and only you can guide them correctly
sakina
And if you go for further specialisations you can study hypnosis, face reading, body language etc
sakina
Thanks a lot🙏🏾 And ik some of the stuffs u said but i am also going to write thesis, right ?
edem
ok no prob, thanks a lot🙏🏾✨
edem
cerebellum
Khan
hae everyone, hope you are well this evning my question is what is the difference between drive and motivation
Michael
good question
Rainee
drive is more like an impulse or urge and i think they both go together (drive and motivation) even if there is a slight difference
edem
@ Michael Drive is delivered to be innate without the use of an external stimuli, motivation normally evolves an outside stimuli which may include praise, appreciate, or reward.
Reginald
*believed...sorry for typo
Reginald
@Reginald, can't the motivation come from the inner self?
edem
Good question, please give an example.
Reginald
can we say desire of success for example
edem
Wilhelm Wundt is the father of psychology
ipau
Wilhem Wundt thank you for the road that you opened.
Qwanta
You mean who is the father of having a great educated argumentative guess? nothing is more wrong than this question. The question is you should ask yourselfs is, how sure are you abour their scientific studying? one's percieved assimilated approach to judging another person and saying they are
Roger
the biggest problem with scientific research and data is that ya you could get the same result 1000 times then it could go the other way 1000 times, but we would never know that and we did, we would still say ya but the proof is there. The only thing science proves is that humanity has
Roger
no facts about human behavior in the scientific context, but more in the trial and error.. sorry to tell you, but so far no one has proven Father of anything, thats up to you and i, judgement is bias, science is good enough lazy
Roger
cognitive development is the growing and development of the brain.
Jessy Reply
Anyone knows about Techno-fascism?
Hussein Reply
Ecofascism is a theoretical political model in which an authoritarian government would require individuals to sacrifice their own interests to the "organic whole of nature". The term is also used as a rhetorical pejorative to undermine the environmental movement.
ipau
what's the big difference between prejudice and discrimination?
Danice Reply
A prejudiced person may not act on their attitude.  Therefore, someone can be prejudiced towards a certain group but not discriminate against them.  Also, prejudice includes all three components of an attitude (affective, behavioral and cognitive), whereas discrimination just involves behavior
Nancy Lee
hi
basher
hello
Rahul
what is all about cognitive development?
Kamohelo
cognitive development is the growing and development of the brain
Jessy
cognitive development is a science that studies the development of human being from pregnancy to childhood to adulthood to death _ human cycle life _ it study the wag we develop mentally and physically, behaviors and learning...
Johan
Prejudice has to do with the inflexible and irrational attitudes and opinions held by members of one group about another, while discriminationrefers to behaviors directed against another group. Beingprejudiced usually means having preconceived beliefs about groups of people or cultural practices.
Shonna
hah
lord
cognitive development is a science that studies the development of human being from pregnancy to childhood to adulthood to death _ human cycle life _ it study the wag we develop mentally and physically, behaviors and learning...
Johan
what's stereotyping?
Samantha
and what kind of app is this ? I have already signed out yet your messages keep on popping
jewel
how do you control a variable when using spss whilst running a pearsons correlation analysis?
Jessie Reply
it dependa on your study. according to what you want to say and explain your result
Pouran
Hello
Jobe
why does it say her and she
Jayla Reply
stages of cognitive development
brivia Reply
sensory preoperatinal concrete formal
Rajendra
What's mental memory?
Namuaha
Memory is our ability to encode, store, retain and subsequently recall information and past experiences in the human brain. It can be thought of in general terms as the use of past experience to affect or influence current behaviour.
Shilan
What I mental memory?
Namuaha
What's mental memory?
Namuaha
my thankful
Namuaha
Shilan I love your definition
Jobe
what is psychology
Chethani Reply
the study of insecurities and the effect on the host .
Sera
Psychology is the scientific study of behavior & mental processes
Angela
psychology is science about learning human behaviour
Zhamshid
behaviorosm
Khan
is the study of human behaviour and mental processes
Jobe
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Game 2302 - mathematical applications for game development. OpenStax CNX. Jan 09, 2016 Download for free at https://legacy.cnx.org/content/col11450/1.33
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Game 2302 - mathematical applications for game development' conversation and receive update notifications?

Ask