wu :: forums
« wu :: forums - Multiply x with y without using +,* »

Welcome, Guest. Please Login or Register.
May 18th, 2024, 4:33pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: Eigenray, towr, ThudnBlunder, Grimbal, william wu, SMQ, Icarus)
   Multiply x with y without using +,*
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Multiply x with y without using +,*  (Read 898 times)
mcprabhakaran
Junior Member
**





   


Posts: 62
Multiply x with y without using +,*  
« on: May 16th, 2007, 4:09am »
Quote Quote Modify Modify

Hi Friends,
 
  Tell me some ideas about multiplying a number x with y without using +,*;
 
 For example n*7 can be done by  
 
(n<<3)- n
 
 
Whether there is a common algorithm for this? If it is suggest me.
IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: Multiply x with y without using +,*  
« Reply #1 on: May 16th, 2007, 4:50am »
Quote Quote Modify Modify

Since it is not forbidden: x/(1.0/y).
 
or exp(ln(x)-(-ln(y)))
 
Assuming we are dealing with floats or doubles.
IP Logged
mcprabhakaran
Junior Member
**





   


Posts: 62
Re: Multiply x with y without using +,*  
« Reply #2 on: May 16th, 2007, 4:58am »
Quote Quote Modify Modify

Thank U very Much... Smiley Smiley Smiley
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board