answersLogoWhite

0

echo "Enter a value: "

read a

echo "Enter a value: "

read b

echo "Enter a value: "

read c

x1= echo "scale=7; (-$b+sqrt($b^2-4*$a*$c))/(2*$a)"|bc'

x2= echo "scale=7; (-$b-sqrt($b^2-4*$a*$c))/(2*$a)"|bc'

echo $x1

echo $x2

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

Add your answer:

Earn +20 pts
Q: Unix shell program to find the roots of a quadratic equation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Geometry

Write a Shell program to find the area and circumference of a circle?

echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi


How many lines of symmetry does an open scallop shell have?

1


How many people could live on the surface of a Dyson sphere?

A "Dyson Sphere" is not really a sphere at all, but a dense network of solar energy collection devices orbiting around a star, effectively collecting all (or most of) the energy emitted from the star. There is no common "surface" for this network. But even if you were talking about the "surfaces" of each of the millions (billions) of satellites, none of them would have an atmosphere, and therefore, no one could live on those surfaces. I suspect you're actually talking about a "Dyson Shell", which is a shell of solid matter around a star. Note that this is not an invention of Freeman Dyson, but of science fiction writers. Freeman Dyson himself, when answering letters from people who misunderstood his idea as a Dyson Shell, stated flatly that a Dyson Shell was physically impossible. I won't go so far as to say that a Dyson Shell is physically impossible. However, there are serious impediments that are not likely to be overcome. First and foremost, there's not enough matter in the solar system to create a Dyson Shell, at 1AU distance from the sun, of sufficient thickness. Using all the "easily usable building material" in the solar system, a shell of only 8-20 cm thick could be constructed. That is not nearly thick enough to withstand impacts from interstellar bodies. Moreover, even if such a shell could be constructed, the inner surface of that shell would exert virtually no gravity on objects inside the sphere, and thus anything placed inside the sphere would fall into the star. That includes gases, so there wouldn't be any atmosphere around the inner surface of the shell. And speaking of gravity, it's doubtful that the 8-20-cm-thick shell could withstand that kind of gravity. Even if all of this could somehow be overcome, there is nothing to keep the shell in position with respect to the star, nor the star in position with respect to the shell. They would just drift around with respect to each other until the star hit the surface and punched through. Of course, anyone living on that inner surface would die from either extreme heat or extreme cold long before the breakthrough. Then there's the issue of feeding the population of the Dyson Shell. Remember, we used up all the solid material in the solar system just to build a rigid shell. Where are we going to get the soil to plant crops in? But, assuming all of these obstacles could somehow be overcome, the inside surface of a Dyson Shell would have an area of about 550 million times the surface area of Earth. So, however many people could live on the surface of the Earth, multiply that by 550 million.


What does gs stamped on a necklace mean?

Most likely it is Gold shell (gold plated) But it could be a jewelers mark.


What do you mean by internal radius?

It's the radius of a circle or sphere WITH A SHELL(or Thickness); like if an Lid on a jar had a diameter of 11mm across on the outside (top of lid); and was ONE mm thick, then the inside radius would be 5. ie; 11mm outer diameter, minus (-) 1mm thickness (aka; or shell) equals (=) 10mm (inner) diameter; which is a 5mm radius.