How can I find the largest of two numbers mathematically?

1 Answer

Answer :

Why not show us the code?

Related questions

Description : Write an algorithm to subtract two 16 bit numbers (With borrow) in 8086 microprocessor.

Last Answer : Algorithm for 16 bit numbers subtraction with borrow: 1. Load 0000H into CX register (for borrow) 2. Load the first number into AX(accumulator) 3. Load the second number into BX register 4. Subtract ... . Move data from AX(accumulator) to memory 8. Move data from CX register to memory 9. Stop

Description : Looking for a simple way to generate some permutation-like numbers!

Last Answer : answer:If you can take the time to learn it, Pure Data might be just what you are looking for. It is pretty good at managing number sequences and creating output, which appears to be what you are looking for… Good luck! :)

Description : Write an algorithm and draw the flowchart to find sum of series of numbers. 

Last Answer : Algorithim to find sum of series of numbers: 1. Initialize data segment 2. Initialize byte counter and memory pointer to read number from array. 3. Initialize sum variable to 0 4. sum=sum+number from array ... Decrement byte counter 9. If byte counter=0 then step 10 else step 4 10. Stop

Description : Mathematically, the ellipse is a curve generated by a point moving in space such that atany position the sum of its distances from two fixed points (foci) is constant and equal to a.the major diameter b.the minor diameter c.semi major diameter d.semi-minor diameter

Last Answer : a.the major diameter

Description : Mathematically, the ellipse is a curve generated by a point moving in space such thatat any position the sum of its distances from two fixed points (foci) is constant and equal to a.the major diameter b.the minor diameter c.semi major diameter d.semi-minor diameter

Last Answer : a.the major diameter

Description : How high would presidential nominees' unfavorability ratings have to be to mathematically guarantee that the majority of the country does not support either candidate?

Last Answer : answer:I think that you're assuming a level of some kind of actual knowledge of the chosen candidate's positions and ideas in order to make some type of informed choice - and which has not ... . So how will these kinds of voters even be able to perceive that their candidates have negative ratings?

Description : Is there ever an odds to payout ratio that makes purchasing a lottery ticket a mathematically rational choice?

Last Answer : I bought tickets the day after the mega-million win. I don’t need a mega-million. 100,000 will do nicely. And the competition is way down.

Description : Mathematically speaking... what actually is a Matrix?

Last Answer : A Matrix is a grid. Good example is a Chess board.

Description : A question for the mathematically minded jellies, involving statistics and limits.

Last Answer : The ratio would be expected to stay at the original ratio, whatever that was. For example, if there are 12000 red and 10000 green and you took out a 220, you’d expect to get 120 red and 100 green and the ratio would remain 1.2:1.

Description : The parabola is defined mathematically as a curve generated by a point that moves suchthat its distance from the focus is always__________the distance to the directrix a.larger than b.smaller than c.equal to d.none of the above

Last Answer : c.equal to

Description : Which of the following is not a method to describe a curve mathematically? a.Explicit form b.Laplace form c.Implicit form d.Parametric form

Last Answer : b.Laplace form

Description : Derive mathematically value of Kp for A(g) + B(g) ⇌ C(g) + D(g).

Last Answer : Derive mathematically value of Kp for A(g) + B(g) ⇌ C(g) + D(g).

Description : High level language is also called A) Problem oriented language B) Business oriented language C) Mathematically oriented language D) All of the above

Last Answer : Answer : D

Description : Define Boyle’s law. How is it represented mathematically?

Last Answer : Ans.The volume of a given mass of a gas is inversely proportional to its pressure at constant temperature Mathematically V α 1/P. PV = constant.

Description : High level language is also called a. Problem oriented language b. Business oriented language c. Mathematically oriented language d. All of the above

Last Answer : All of the above

Description : The Green’s theorem can be related to which of the following theorems mathematically? a) Gauss divergence theorem b) Stoke’s theorem c) Euler’s theorem d) Leibnitz’s theorem

Last Answer : b) Stoke’s theorem

Description : Mathematically, the functions in Green’s theorem will be a) Continuous derivatives b) Discrete derivatives c) Continuous partial derivatives d) Discrete partial derivatives

Last Answer : c) Continuous partial derivatives

Description : The correct formula for determining an actual CPC as when an advertisement is clicked can be mathematically derived as __________. a. Position * QS b. Impressions * Clicks c. Clicks / Impressions d. QS * Max CPC (bid)

Last Answer : d. QS * Max CPC (bid)

Description : A(n) ____ language reflects the way people think mathematically. a) cross-platform programming b) 3GL business programming c) event driven programming d) functional e) None of these

Last Answer : d) functional

Description : First law of thermodynamics is mathematically stated as (A) dQ = dE + dW (B) dQ = dE - dW (C) dE = dQ + dW (D) dW = dQ + dE

Last Answer : First law of thermodynamics is mathematically stated as (A) dQ = dE + dW (B) dQ = dE - dW (C) dE = dQ + dW (D) dW = dQ + dE

Description : Consider the following statements: 1. Mathematically speaking, the time taken for 100% consolidation is infinite. 2. The time factor for a particular average degree of consolidation depends upon the distribution of initial excess hydrostatic ... 3 (b) 1 & 2 only (c) 2 & 3 only (d) 1 & 3 only

Last Answer : (b) 1 & 2 only

Description : High level language is also called a. Problem oriented language b. Business oriented language c. Mathematically oriented language d. All of the above

Last Answer : d. All of the above

Description : Having multiple perceptrons can actually solve the XOR problem satisfactorily: this is because each perceptron can partition off a linear part of the space itself, and they can then combine their results. ... have to be explicitly hand-coded d) False - just having a single perceptron is enough

Last Answer : c) True – perceptrons can do this but are unable to learn to do it – they have to be explicitly hand-coded

Description : State Fourier's law of 'conduction and Stefan Boltzmann law of radiation. Express mathematically.

Last Answer : Fourier law of heat conduction- It state that for homogeneous material, the rate heat transfer in steady state in any direction is linearly proportional to temperature gradient in that direction. Q α dt/ ... proportional to fourth power of absolute temperature of the body. E α T4 E= σT4

Description : Mathematically, what is a differential? a. A technique used for mathematical modeling. b. A method of directly relating how changes in an independent variable affect changes in a dependent variable. c ... changes in a dependent variable affect changes in an independent variable. d. None of the above

Last Answer : Mathematically, what is a differential? a. A technique used for mathematical modeling. b. A method of directly relating how changes in an independent variable affect changes in a dependent variable. ... in a dependent variable affect changes in an independent variable. d. None of the above

Description : How can I swap two integers without temporary variables using JavaScript code?

Last Answer : answer:This is a trick using the exclusive or operator ^ that was used when computers were short on memory. a = (a ^ b) /* a^b, b */ b = (a ^ b) /* a^b, a */ a = (a ^ b) /* b, a */ You can also do it using subtraction for numeric ... = a - b /* a - b, b */ b = b -a /* a-b, a */ a = b - a /* b, a */

Description : How do you do an optimal binary search on a two variable function?

Last Answer : You need to clarify your terminology a little bit. Symmetric about the diagonal? Strictly increasing with respect to which ordering of the pairs?

Description : What is the difference between these two high-tech jobs: Internet Product Manager and Internet Project Manager?

Last Answer : I can give you a quick version. A product is a something that we sell to the client, be it a service like web design or whatever. A project is a short lived project. Like designing ... . The project requires various experts input to complete, but when it is complete, the project is finished.

Description : Mac developers: any ideas of how to merge two directories?

Last Answer : Never mind. I made a silly mistake. opendiff foo/ bar/ -merge /bar totally works.

Description : Salesforce SDK uninstallation from XCode?

Last Answer : Too many variables – only you know your code, how it was written, and how extensible (or not) it was in the first place. I assume you have been to the Saleforce API and SDK pages.

Description : Is there a program where you can identify music in a specific website?

Last Answer : Need Answer

Description : What is a good programming language to make a multiple choice quiz?

Last Answer : Google classroom should work.

Description : Is there a website that shows all the English words, idioms, etc ever invented, including archaic, unofficial, and newest words that have just been invented?

Last Answer : The problem with such a lexicon would be that there have been a lot of slang, dialect, idioms, and unofficial words that 99% of people have never heard of. Besides that, the English language is ... pretty good vocabulary. Hopefully, someone will recommend some. I am unable to do this at the moment.

Description : How can I add HTML markup to this ajax result?

Last Answer : Need Answer

Description : Function or application allowing me to connect or disconnect wifi?

Last Answer : Some routers - Belkins and older Ciscos, had an app that would allow you to remotely-control your router from your phone. You didn't say what kind of router you have, so it's hard to guess. You can ... . Bottom line - you can do this easily if you have a wifi-based power switch and an app. example

Description : How can I become advanced in javascript in 2 months?

Last Answer : Study hard…work hard!!!

Description : Can you help fix this programming problem in Python?

Last Answer : You can’t treat arrays of digits as a single number. The easiest way to read a numeric string is to use the sys library to read a line from the keyboard. import sys print(“Enter value for mass”) mass = sys.stdin.readline() mass = float(mass)

Description : What's the best book for understanding Unity 2D?

Last Answer : Are you a beginner programmer in general, or just new to Unity? That would make a big difference in how I would respond.

Description : Programmers: Is this puzzle a "named problem?" and can you help me with it?

Last Answer : I'd call it enumerating a list of all combinations . There's a field of math called combinatorics which I did not study but I assume probably has a word for this. It doesn't seem like a puzzle ... each iteration, and tweak it to get the output format you want, but that's essentially it, I think.

Description : How do you get the link posted and not the updated page?

Last Answer : You don't have control over it. The URL that you referred to today is pointing to a page that is housed at a server somewhere else. It isn't under your control or Fluther's - it is under the control of ... a month or a year ago. Summary: it isn't under your control. You get the page they send you.

Description : I'm looking for a IT Project Idea for my Final Year. Can anyone suggest something?

Last Answer : How to maintain a question and answer site with trolls, spammers, and questions that violate the guidelines?

Description : How can i improve my skill sets?

Last Answer : You didn't say what you already know, but my main recommendation for something to learn is Python. It's a great learning language, it's free and easy to install, there are great ... and relatively easily. https://www.python.org/about/gettingstarted/ https://www.programiz.com/python-programming

Description : What should I study in order to write/program a career search software?

Last Answer : More programming. And logic. You need to understand how to develop a search for terms, and then also determine where to search, and then how to optimize search results in a relational database.

Description : Is it on all smartphones you can't post a link?

Last Answer : I can’t cut and paste easily with a smart phone. I could type the link by hand. I would have to write it to a pen and paper first and it would work. If I really need too I could boot up my new chrome book and make a link.

Description : How much work does it take to change on a program, from "Monday to Sunday" to whichever 7 days in a row?

Last Answer : It would depend on the individual program.

Description : What coding languages or other courses should I take on CodeCademy?

Last Answer : The courses that I’ve taken I feel are really only useful for Web design.

Description : How do I simply repeat a line of code 4x in Javascript?

Last Answer : something like a for loop is pretty simple, and gives you a handy counter if needed. for(var i = 0; i < 4; i++) { forward(); }

Description : Programming a NEMA 17 stepper motor to microstep with an Arduino?

Last Answer : There are literally thousands of arduino code examples out there. This is something you should figure out on your own because the act of doing so will make you a better tinkerer. A typical stepper will have like ... digital I/o pins to output the step sequence. Even an uno or mini pro will do that.

Description : Programming a stepper to have a "home" position?

Last Answer : Obviously it would need some way to sense or establish its location, or possibly to move or grope about to establish its location. And it could be good to have some logic for noticing when its assumptions about its environment are wrong.

Description : How to become a Game Developer?

Last Answer : There are really two separate questions (or skills) needed here. 1) programming technique. Have you been a programmer; have you developed software before? That's a skill unto itself Programming for a small ... . I can't give you a better answer, because there are so many options to choose from.