1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lena [83]
2 years ago
5

For the R function shown below(Attachment):

Engineering
1 answer:
Virty [35]2 years ago
5 0

Answer:

The given function will return an integer in term of j on each iteration of while loop. However, it is noted that this program has some syntax error. The complete code executed in an online R compiler with explanation is given below

Explanation:

def<-function(j){

               k=0;

               i=1;

               while (i<j**3) #j raise to power 3

                   {

               

                   k<-k+1;#k=k+1

                   i <- i*2;#i=i*2

                   print(k);#

               }

 

    }

 def(6)# if you pass the value 6 to function def(j)

You might be interested in
Air is compressed in a reversible, isothermal, steady- flow process from 15 psia, 100°F to 100 psia. Calculate the work of compr
mixas84 [53]

Answer:

|W|=169.28 KJ/kg

ΔS = -0.544 KJ/Kg.K

Explanation:

Given that

T= 100°F

We know that

1 °F = 255.92 K

100°F = 310 .92 K

P _1= 15 psia

P _1= 100 psia

We know that work for isothermal process  

W=mRT\ln \dfrac{P_1}{P_2}

Lets take mass is 1 kg.

So work per unit mass

W=RT\ln \dfrac{P_1}{P_2}

We know that for air R=0.287KJ/kg.K

W=RT\ln \dfrac{P_1}{P_2}

W=0.287\times 310.92\ln \dfrac{15}{100}

W= - 169.28 KJ/kg

Negative sign indicates compression

|W|=169.28 KJ/kg

We know that change in entropy at constant volume

\Delta S=-R\ln \dfrac{P_2}{P_1}

\Delta S=-0.287\ln \dfrac{100}{15}

ΔS = -0.544 KJ/Kg.K

3 0
3 years ago
what is the transfer function of the loaded filter? express your answer in terms of the variables r , l , rl , and s .
NISA [10]

Loaded, H_{Loaded}(s) = \frac{RR_{L} }{R+R_{L} } /(\frac{RR_{L} }{R+R_{L} }+SL) = \frac{RR_{L}/L }{R+R_{L} } /(\frac{RR_{L} /L}{R+R_{L} }+S) is the loaded filter's transfer function.

A graded filter that, by virtue of its weight and permeability, stabilises the foot of an earth dam or other construction when it is installed at the base of that structure.

Air filters with depth loaded are made to achieve precisely that. They add particles gradually to create air passageways, reducing constriction. You may save time and money by using filters that last longer thanks to them. The bigger particles are caught at the filter's beginning, while the smaller particles are caught as it gets closer. This is intended to avoid rapid surface loading, hence facilitating more airflow. This enables longer-lasting filtration as well.

On the other hand, surface loading filters catch every particle that is on its surface. No matter how big or little the particles are, it doesn't care.

Learn more about Loaded here:

brainly.com/question/20039214

#SPJ4

3 0
1 year ago
Implement a function called myFilter that does the following: Takes a sequence of integers with values from 0 to 100 Remove all
goldenfox [79]

Answer:

using System;

using System.Collections.Generic;

using System.Linq;

public class Problem1 {

public static IEnumerable < int > myFilter(IEnumerable < int > input) {

return input.Where((val, index) => {

//First remove all multiples of 6 less than 42

return !(val % 6 == 0 && val < 42);

}).Select((val, index) => {

//Then square each number

return val * val;

}).Where((val, index) => {

// Finally, remove any resulting integer that is odd

return !(val % 1 == 0);

});

}

public static void Main(string[] args) {

Random rnd = new Random(5);

//Takes a sequence of integers with values from 0 to 100

var listForProblem = Enumerable.Range(1, 100).Select(i => rnd.Next() % 101);

var answer = Problem1.myFilter(listForProblem);

foreach(int i in answer) {

Console.WriteLine(i);

}

}

}

Explanation:

The Problem 1 solution is explanatory enough.

Your problem 2 question is lacking details. However, i have written a code that sorts it.

6 0
3 years ago
Su prepares a presentation about the industrial revolution. She wants to change the font on the second slide of her presentation
choli [55]

Font of the slide can be edited in the presentations :-

Explanation

By following these steps Su can change the presentation font of her second slide.

1. Edit- As Su open her second slide , there will be a option of "Edit" on the top right corner of the screen.

2. Font- As the various options are available on the screen such as  font size , add image etc ,click on the option "Font"

3. Drop Down- As you click on font option , it will be followed by a drop down option with various type of fonts. Su can select the font she wishes to add in her presentation and look it more precise by adjusting the Font Size.

4 Save- Save the changes made in the slide for future.        

8 0
3 years ago
Which of these is a characteristic of a reform movement?
Reika [66]

Answer:

distinguished from more radical social such as revolutionary

7 0
3 years ago
Other questions:
  • To ensure safe footing on penetrable surfaces,use?
    5·1 answer
  • What family tree are pecans apart of
    14·2 answers
  • A silicon carbide plate fractured in bending when a blunt load was applied to the plate center. The distance between the fractur
    11·1 answer
  • Can I get a hand? Thanks y’all much luv
    13·1 answer
  • Which of the following is an example of seeking accreditation?
    7·1 answer
  • State the mathematical expression to define the availability of equipment over a specified time and operational availability?
    6·1 answer
  • Which source would be the best to base a hypothesis upon
    9·1 answer
  • Which of these people is an engineer?
    13·1 answer
  • How much energy in joule is added to a 12 g of sample of aluminum (c=0.897 J/g ◦C) to raise the temperature from 20 ◦C to 45 ◦C?
    14·1 answer
  • Explain the purpose of wrench plzzz
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!