SlideShare a Scribd company logo
1 of 1
Download to read offline
In R,
"For a 11 problems, you should include a short demonstration (one or two examples) showing that
you coded your function correctly.* 1. "Write a function that has a logical vector (TRUE/FALSE) as
its argument. The function should treat the logical vector as a binary integer in that FALSE = 0 and
TRUE =1. The function should ca7culate and return the corresponding integer. For example, for
argument C(TRUE,FALSE), the function should return 2 , since 10 in base 2 is 2 in base 10
(hence the joke above). For argument C(FALSE, TRUE, FALSE, TRUE), the function should
return 5 because 0101 in base 2 is 5 in base 10 * 2. "Write a function that takes in a logical vector
of length 64 and returns the sign ( -1 or 1 ), the exponent (integer between -1023 and +1023 ), and
fraction (number between 1 and 2) according to the IEEE double precision format. Assume that
the first digit is the sign, the next digits are for the exponent, and the 7 ast digits are for the
fraction. *

More Related Content

Similar to In R For a 11 problems you should include a short demonst.pdf

Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010Lakshmi Gupta
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfadmin447081
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2Amit Kapoor
 
Writer Monad for logging execution of functions
Writer Monad for logging execution of functionsWriter Monad for logging execution of functions
Writer Monad for logging execution of functionsPhilip Schwarz
 
A Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented SystemA Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented SystemTakuo Watanabe
 
Query optimization in database
Query optimization in databaseQuery optimization in database
Query optimization in databaseRakesh Kumar
 
Assignment Two Objectives • Understand how the.docx
Assignment Two   Objectives • Understand how the.docxAssignment Two   Objectives • Understand how the.docx
Assignment Two Objectives • Understand how the.docxlynettearnold46882
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersSheila Sinclair
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docxGEETHAR59
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpExcel Homework Help
 
Virtusa questions placement preparation guide
Virtusa questions placement preparation guideVirtusa questions placement preparation guide
Virtusa questions placement preparation guideThalaAjith33
 
Lecture 3 and 4.pptx
Lecture 3 and 4.pptxLecture 3 and 4.pptx
Lecture 3 and 4.pptxMAHAMASADIK
 

Similar to In R For a 11 problems you should include a short demonst.pdf (20)

Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
 
The Real Numbers
The Real NumbersThe Real Numbers
The Real Numbers
 
Writer Monad for logging execution of functions
Writer Monad for logging execution of functionsWriter Monad for logging execution of functions
Writer Monad for logging execution of functions
 
Excel IF, IFs.ppt
Excel IF, IFs.pptExcel IF, IFs.ppt
Excel IF, IFs.ppt
 
A Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented SystemA Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented System
 
Query optimization in database
Query optimization in databaseQuery optimization in database
Query optimization in database
 
1.2 matlab numerical data
1.2  matlab numerical data1.2  matlab numerical data
1.2 matlab numerical data
 
Mettl prg
Mettl prgMettl prg
Mettl prg
 
ch14.ppt
ch14.pptch14.ppt
ch14.ppt
 
Assignment Two Objectives • Understand how the.docx
Assignment Two   Objectives • Understand how the.docxAssignment Two   Objectives • Understand how the.docx
Assignment Two Objectives • Understand how the.docx
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
 
Excel formulas
Excel formulasExcel formulas
Excel formulas
 
Compiler notes--unit-iii
Compiler notes--unit-iiiCompiler notes--unit-iii
Compiler notes--unit-iii
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docx
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
DE notes
DE notesDE notes
DE notes
 
Virtusa questions placement preparation guide
Virtusa questions placement preparation guideVirtusa questions placement preparation guide
Virtusa questions placement preparation guide
 
Lecture 3 and 4.pptx
Lecture 3 and 4.pptxLecture 3 and 4.pptx
Lecture 3 and 4.pptx
 

More from abdulauto

Please answer all the questions QUESTION 1 How has the .pdf
Please answer all the questions  QUESTION 1 How has the .pdfPlease answer all the questions  QUESTION 1 How has the .pdf
Please answer all the questions QUESTION 1 How has the .pdfabdulauto
 
Observe the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdfObserve the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdfabdulauto
 
Nancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdfNancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdfabdulauto
 
Kenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdfKenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdfabdulauto
 
Which of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdfWhich of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdfabdulauto
 
XBinomnp1+X1.pdf
XBinomnp1+X1.pdfXBinomnp1+X1.pdf
XBinomnp1+X1.pdfabdulauto
 
Identificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdfIdentificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdfabdulauto
 
Friends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdfFriends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdfabdulauto
 
Which of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdfWhich of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdfabdulauto
 
The time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdfThe time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdfabdulauto
 
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdfUber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdfabdulauto
 
Think about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdfThink about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdfabdulauto
 
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdfTooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdfabdulauto
 
The purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdfThe purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdfabdulauto
 
The focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdfThe focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdfabdulauto
 
If you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdfIf you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdfabdulauto
 
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdfHetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdfabdulauto
 
Empowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdfEmpowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdfabdulauto
 
At the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdfAt the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdfabdulauto
 
8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdf8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdfabdulauto
 

More from abdulauto (20)

Please answer all the questions QUESTION 1 How has the .pdf
Please answer all the questions  QUESTION 1 How has the .pdfPlease answer all the questions  QUESTION 1 How has the .pdf
Please answer all the questions QUESTION 1 How has the .pdf
 
Observe the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdfObserve the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdf
 
Nancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdfNancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdf
 
Kenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdfKenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdf
 
Which of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdfWhich of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdf
 
XBinomnp1+X1.pdf
XBinomnp1+X1.pdfXBinomnp1+X1.pdf
XBinomnp1+X1.pdf
 
Identificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdfIdentificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdf
 
Friends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdfFriends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdf
 
Which of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdfWhich of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdf
 
The time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdfThe time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdf
 
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdfUber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
 
Think about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdfThink about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdf
 
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdfTooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
 
The purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdfThe purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdf
 
The focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdfThe focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdf
 
If you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdfIf you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdf
 
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdfHetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
 
Empowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdfEmpowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdf
 
At the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdfAt the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdf
 
8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdf8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdf
 

Recently uploaded

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 

Recently uploaded (20)

OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 

In R For a 11 problems you should include a short demonst.pdf

  • 1. In R, "For a 11 problems, you should include a short demonstration (one or two examples) showing that you coded your function correctly.* 1. "Write a function that has a logical vector (TRUE/FALSE) as its argument. The function should treat the logical vector as a binary integer in that FALSE = 0 and TRUE =1. The function should ca7culate and return the corresponding integer. For example, for argument C(TRUE,FALSE), the function should return 2 , since 10 in base 2 is 2 in base 10 (hence the joke above). For argument C(FALSE, TRUE, FALSE, TRUE), the function should return 5 because 0101 in base 2 is 5 in base 10 * 2. "Write a function that takes in a logical vector of length 64 and returns the sign ( -1 or 1 ), the exponent (integer between -1023 and +1023 ), and fraction (number between 1 and 2) according to the IEEE double precision format. Assume that the first digit is the sign, the next digits are for the exponent, and the 7 ast digits are for the fraction. *