exercise 8 write a function sort3 of type real * real * real -> real list that returns a list of three real numbers, in sorted order with the smallest firs

Answers

Answer 1

To write the function "sort3" of type "real * real * real -> real list" that returns a list of three real numbers in sorted order with the smallest first, you can use the following code:
```
fun sort3 (x, y, z) = [x, y, z] |> List.sort Real.compare;
```

Here, we define a function called "sort3" that takes in three real numbers (x, y, z) and returns a list of those numbers sorted in ascending order. To do this, we first create a list of the three numbers using the list constructor [x, y, z]. We then use the pipe-forward operator (|>) to pass this list to the "List.sort" function, which takes a comparison function as an argument. We use the "Real.compare" function as the comparison function to sort the list in ascending order.

So, if you call the "sort3" function with three real numbers, it will return a list containing those numbers in sorted order with the smallest first. For example:

```
sort3 (3.4, 1.2, 2.8); (* returns [1.2, 2.8, 3.4] *)
```

Learn more about function:

https://brainly.com/question/14273606

#SPJ11


Related Questions

a collection of logically related instructions is called _______​

Answers

Answer:

Data Base from what I know

Explanation:

the computer stores the data and information on the ______​

Answers

Answer:

Primary memory, it might be cpu but i think its primary memory

Explanation:

Which item would not generate a desktop alert by default in Outlook 2016?

new contact created
meeting request received
email received
task assignment received
i couldn't find this awnser and my teacher is extending our test period for another 20 minutes. please help

Answers

Answer:

New contact created does not generate a desktop alert by default.

Explanation:

edg.2021

Answer:

A

Explanation:

What percentage of teens say they have witnessed cyberbullying?

50

95

70

35

Answers

A Majority of Teens Have Experienced Some Form of Cyberbullying. 59% of U.S. teens have been bullied or harassed online, and a similar share says it's a major problem for people their age

254 × (×) igual 20×()682883993

What was the biggest challenge you faced in getting to where you are today and how did you overcome it? Peer counseling

Answers

The biggest challenge I still am faced with today is loosing weight, it can be different for everyone but that is mine. I overcomed it by eating a lot better and not so much junk food.

1. Visual design and font/background are both essential and considered vital for the success of a web. If you are the developer, which of the two will you be focused on?

Answers

Answer:

As a developer, I'd be focused on the two starting with the front end.

Explanation:

A front-end developer simply is a user-end or client-side developer. A front-end person in web design is responsible for how a website looks and feels like, essentially, the websites' users first impression.

This is a huge task and can be very daunting even for the best developers. Whilst the back-end or the engine of a website is critical and indispensable, it is important for a developer to master the principles of front-end development first as that gives him a better perspective as to how they can better create and configure a matching or suitable back end.

Most if not all are designed to achieve a particular purpose e.g.

Increase salescommunicate informationtrainingelicit information etc

The ease with which the user is able to interact with the website will determine the extent to which the purpose of the website is achieved.

Some of the qualities of a great user interface the front end developer must keep in mind are:

Clarity Conciseness Familiarity  EfficiencyConsistency Attractiveness

Back-end has to do with the part of the website called the server.

In addition to the server, there are two other critical components of the back-end of the website:

Application and Database.

Together, these three contribute to ensuring that you have a functional website. The server, application and database, all control what happens on the front end and results in what the user will see via the browser.

There are many high-functioning websites today that have very poor interfaces.  A poor interface is a guarantee that people will spend less time on the website.

Conclusively, both ends are indispensable, as with most things, however, one should seek to understand how the user thinks and feels in relation to how they like to use a website before doing into the back-end to make that possible.

Cheers

There are different kinds of designs. As a developer, my Visual design would focus more on background.

Visual design is known to be a kind of design that strike equality between unity and variety. The use of design elements to work on the background and when done properly, gives users a nice experience.

Visual design is one that act to improve the design's or the product's aesthetic feeling.

Learn more about Visual design from

https://brainly.com/question/1332211

6. A presentation is widely used to present and effectively​

Answers

Answer:

A Presentation is a collection of slides arranged in a systematic order. 2) A presentation ...

Explanation:

Please give thanks to all my answers and please mark as brilliant and please follow me

Describe some common types of charts.​

Answers

Bar chart.
Pie chart.
Line chart.

Answer:

The four most common are probably line graphs, bar graphs and histograms, pie charts, and Cartesian graphs. They are generally used for, and are best for, quite different things.

Explanation:

Line chart- A graph with points connected by lines to show how something changes in value: • as time goes by, • or as something else changes.

Example: how you are improving at a quiz each day.

Bar chart- A graph drawn using rectangular bars to show how large each value is. The bars can be horizontal or vertical. It is a really good way to show relative sizes. We can use bar graphs to show the relative sizes of many things, such as what type of car people have, how many customers a shop has on different days and so on.

Histogram- a graphical display of data using bars of different heights. It is similar to a Bar Chart, but a histogram groups numbers into ranges . The height of each bar shows how many fall into each range.

Pie chart- a special chart that uses "pie slices" to show relative sizes of data. It is a really good way to show relative sizes.

Cartesian chart- This is a type of chart that uses coordinates to pinpoint where something is on a map or graph. Using Cartesian Coordinates we mark a point on a graph by how far along and how far up it is.

Which option is the default when creating appointments and meetings in a user’s own calendar as it relates to Free/Busy information that others will see when looking at the user’s calendar?

a. Free
b. Working Elsewhere
c. Busy
d. Tentative
I only have 10 minutes left so please help fast!

Answers

Answer:

C !

Explanation:

Answer:

Busy

Explanation:

What's wrong with these codes in code HS Karel challenges(7.1.2. Racing Karel) Codes: //Below is the program that have Karel move around the race track 8 times, and end in his starting location. Everytime Karel hits a corner, he will put a ball down. At the end there should be 8 balls on each corner. function start(){ for(var i = 0; i < 5; i++){ ballSet(); wallRun(); turnLeft(); } function wallRun(){ while(frontIsClear()){ move(); } } function ballSet(){ putBall(); } }

Answers

Answer:

The program only runs 5 five since the for loop statement is limited to loop only five times.

Explanation:

In programming, a for-loop statement is used to repeat a collection of events a definite number of times. The number of loops is specified and compared with a variable to execute a block of code.

The for-loop statement in the code above declares and initializes a variable "i" to zero, runs the block of code, and increments by one if it is less than 5.

To make it run eight times, the value five should be changed to 8 instead.

Answer: you have to change the 5 to 8 since its telling you to do it 8 times

Explanation: for(var i = 0; i < 5; i++) should be for(var i = 0; i < 8; i++)

Which actions changed the look of the following word?

A. The Spelling & Grammar function marked the word as an error.
B. The style of the word was set to underline.
C. The user changed the font size.
D. The word was set in italics, and then underlined.

Answers

Answer:

D

Explanation:

The actions applied to change the look of the word are:

1. It was set to italics. This can be done easily by highlighting the word => press Ctrl + I together on the keyboard.

2. Next is to set to underline. While still highlighted => press Ctrl + U together in the keyboard.

Answer:

D

Explanation:

A loan of $12000 was borrowed from the bank at 14% per annum calculate the interest on the loan at the end of the first year ?​

Answers

Answer:

lmasjsjsjssjjssjjssjsjjsksakkalaaooaa

Loan borrowed = $12,000

Percentage of interest on the loan per annum = 14%

We know that :

[tex]\color{hotpink}\tt \: Simple \: interest = \color{plum}\frac{principal \times rate \times time}{100} [/tex]

In this case :

principal = $12000rate = 14%time = 1 year

Simple interest at the end of the first year :

[tex] = \tt \frac{12000 \times 14 \times 1}{100} [/tex]

[tex] = \tt \frac{168000}{100} [/tex]

[tex]\color{plum}\tt = \$1680[/tex]

Thus, interest = $1680

Therefore, total interest on the loan at the end of one year = $1680


1. Light of wavelength 900x10-9 m is emitted by a source. What is its frequency?​

Answers

therefore the frequency = 6×10^14

The frequency of the light is "[tex]6\times 10^{14}[/tex]".

Given values:

Wavelength,

[tex]\lambda = 900\times 10^{-9} \ m[/tex]

As we know the formula,

→ [tex]Frequency = \frac{C}{\lambda}[/tex]

By substituting the values, we get

→                   [tex]= \frac{3\times 10^8}{900\times 10^{-9}}[/tex]

→                   [tex]= \frac{10^8}{300\times 10^{-9}}[/tex]

→                   [tex]= 6\times 10^{14}[/tex]

Thus the above response is correct.  

Learn more about frequency here:

https://brainly.com/question/14459326

3 uses for a GPS system other than for a satellite navigation system

Answers

Answer:

Location – determining a position. Navigation getting from one location to another. Tracking – monitoring object or a personal movement. Mapping – creating maps of the world.

A type of topology in which all the systems a connected a main cable ​

Answers

Answer:

Bus topology uses one main cable to which all nodes are directly connected. The main cable acts as a backbone for the network. One of the computers in the network typically acts as the computer server. The first advantage of bus topology is that it is easy to connect a computer or peripheral device.

If someone said to you, “Pseudocode is a waste of time! It’s just more work because you end up writing the same program twice,” how would you explain the benefits of pseudocode?

Answers

Answer:

It allows the designer to focus on main logic without being distracted by programming languages syntax.

* Since it is language independent, it can be translated to any computer language code.

* It allows designer to express logic in plain natural language.

* It is easier to write actual code using pseudocode.

* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.

Explanation:

create html code showing heading tags​

Answers

Answer:

Assuming you mean the HTML5 head tag, then this may work for you:

<!DOCTYPE HTML>

<html lang="en">

<head>

<title>My Very Awesome Website</title>

<link href="./css/main.css" rel="stylesheet"  />

<meta name="viewport" content="width=device-width, initial-scale=1" />

</head>

<body>

<h1>Hey look</h1>

<p>This is my awesome website!</p>

<h3>Note</h3>

<p>This website is supposed to be 100% awesome!</p>

</body>

</html>

Choose all items that are true about the two example of HTML shown on the right.

Example 1 will display differently than example 2 in a web browser.

They are styled differently, but will look the same in a web browser.

Example 2 is easier to analyze and repair.

The styling in example 2 is required by modern web browsers.

Answers

Answer:

2

Explanation:

Answer:

B and C

Explanation:

Explain in not less than 3 Sentences

1. Decimal Number System


2.Binary Number System​

Answers

Answer:

The Decimal Numeral system :-

It is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral system.

Binary Number system :-

It is a number expressed in the base-2 numeral system , which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit, or binary digit.

hope it helps you...

Can you all help me with this?

Answers

Answer:

(1)mobile smart phone.

(2)server computer.

(3)desktop computer

(4)laptop computer

(5)all in one computer

___________ is a computer programming language.

Answers

Python!!! I hope that helped!!
Pascal, c+, c++ etc

Do all careers or professions need computer science?

Answers

Answer:

no computer science is only needed for coders and engineers not for all is needed ok or one thing is that you study for your knowledge ok

Explanation:

hope it helps you

please mark me as brainlist

Para que se utilizan las siguientes plataformas: Matlab, Labview, VisualBasic, Mplab, Micropic, PicCompiller

Answers

Answer:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

Explanation:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

What line of code would you edit if you wanted a bigger sprite?This is computer science.Pick branliest if right


A.3

B.4

C.5

D.You have to edit the picture itself

Answers

pretty sure the answer is a-3

Answer:

C. 5

Explanation:

Line 3 refers to the positioning of the sprite.

Line 4 refers to the animation preset of the sprite.

Line 5 is the correct choice because in the code it references scale and a value which can be modified to make the sprite bigger. For example, from 0.3 to 0.5

If I'm right please give brainliest, thanks

Find the cost of 2m 20cm at 25p per metre​

Answers

Answer: 55 meters.

Explanation:

First convert the 20 cm to meters so the entire number is in meters.

1 meter = 100 cm

20 in cm is:

= 20/100

= 0.2 meters.

2.2 meters.

One meter costs 25p so 2.2 meters will cost:

= 2.2 * 25

= 55 meters

What storyboarding technique uses a combination of two techniques, and which techniques does it combine?
O A. hierarchical; wheel and linear
O B. linear; webbed and hierarchical
O C. webbed; linear and hierarchical
© D. wheel; webbed and linear

Answers

Answer:

d

Explanation:

Answer:

They're right, it's c:  webbed; linear and hierarchical

Explanation:

Edmentum, I got it right.

Why is computer literacy is important.

Answers

Cause it’s a important  skill process and they want there employees to have basic skill on pc or computers. They come depending on computers and it’s most likely to be more successful on education with the use of computers

WHAT IS MULTIMEDIA SUPPOSED TO MEAN ???

Answers

Answer:

using more than one medium of expression or communication

Answer:

It basically means using more than one expression or form of communication

Explanation:

What is Binary



A part of a computer


A base 2 number system


A computer program


Software for a computer

Answers

The answer to your question would be B. A base 2 number system.

Could someone please help?​

Answers

Answer:

it looks difficult

Explanation:

you can devotingly solve it

Other Questions
what is the most important point to recall when using authentic evaluation procedures? What is the probability of rolling less than 2 on a number cube? Identify each sequence as arithmetic, geometric, both, or neither. 7,9, 11, 13,. Calculate the moles of NH3 produced when 0. 75moles of N2 reacts what is the one type of rsum that all job seekers should have in today's market? group of answer choices a print-based traditional rsum an infographic rsum a video rsum a plain-text rsum 2. What is the product of -2x3 + x - 5 and x3 - 3x - 4?(a) Show your work(b) Is the product of -2x3 + x - 5 and x3 - 3x 4 equal to the product of x3 - 3x - 4 and-2x3 + x-5? Explain your answer an aqueous solution contains 0.469 m ethylamine (c2h5nh2). how many ml of 0.266 m hydrochloric acid would have to be added to 225 ml of this solution in order to prepare a buffer with a ph of 10.500? the nurse is performing an assessment of a patients ears. when looking at the tympanic membrane, the nurse observes a healthy membrane. what should the appearance be? a few years ago, your client hired a salesforce engineer to customize their org. as a result, they rely on complex automation to format their data. which sync rule should they use if they want to use the salesforce integration? TRUE OR FALSE life companies are more heavily invested in corporate bonds and less in municipal bonds than p&c companies because some of their (life) interest income is not taxed. Write a program that reads words from the attached text file and displays all the words in alphabetical order. duplicates are allowed. points eBook Hint Print References Check my work Check My Work button is now enabledItem 4 Item 4 3 points Exercise 2-10 Preparing a trial balance LO P2 The transactions of Spade Company appear below. Kacy Spade, owner, invested $100,750 cash in the company in exchange for common stock. The company purchased office supplies for $1,250 cash. The company purchased $10,050 of office equipment on credit. The company received $15,500 cash as fees for services provided to a customer. The company paid $10,050 cash to settle the payable for the office equipment purchased in transaction c. The company billed a customer $2,700 as fees for services provided. The company paid $1,225 cash for the monthly rent. The company collected $1,125 cash as partial payment for the account receivable created in transaction f. The company paid $10,000 cash in dividends to the owner (sole shareholder). Prepare the Trial Balance. There were 9 toy cars each with 10 parts,a boy removed all the parts and used them to build 6cars equally how many parts were in each new car problem behaviors are classified into five groups. positive reinforcement and shaping do not figure into the treatment plan for __________. You have deposited $19,668 in a special account that has a guaranteed rate of return. If you withdraw $4,000 at the end of each year for 6 years, you will completely exhaust the balance in the account. The guaranteed rate of return is closest to: (Ignore income taxes.) Click here to view Exhibit 12B-1 and Exhibit 12B-2, to determine the appropriate discount factor(s) using the tables provided. Multiple Choice A) 6% B) 7% C) 5% D) 8% the lewis dot structure of the carbonate ion, co32-, has What are the assets does your assigned establishment have that the other's don't have? how does mendelssohn hensel introduce the b section of the string quartet in e-flat major? opacity of the lens of the eye that impairs vision and can cause blindness is called a system absorbs 12 jj of heat from the surroundings; meanwhile, 28 jj of work is done on the system. what is the change of the internal energy ethethdeltae_th of the system?