SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
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. *

Más contenido relacionado

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

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
admin447081
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
Amit Kapoor
 
Excel IF, IFs.ppt
Excel IF, IFs.pptExcel IF, IFs.ppt
Excel IF, IFs.ppt
EdwinAdeolaOluwasina1
 
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
lynettearnold46882
 
Virtusa questions placement preparation guide
Virtusa questions placement preparation guideVirtusa questions placement preparation guide
Virtusa questions placement preparation guide
ThalaAjith33
 

Similar a 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
 

Más de 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 .pdf
abdulauto
 
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
abdulauto
 
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
abdulauto
 

Más de 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
 

Último

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

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. *