Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

taking modulus
hello

i require to take the modulus of a particular result..

the command in the help window gives the mod of the remainder,...
example
AM = a1(1,2) / ( a1(1,1)*r)
here, a1 matrix and r are already defined.

i require the modulus of AM for further calculations..
that is.. i want to take the positive value even if the result if
negative.

plz help

Report this thread to moderator Post Follow-up to this message
Old Post
neha
05-31-05 09:03 AM


Re: taking modulus
In article <ef078be.-1@webx.raydaftYaTP>, neha <neha_goyal85@yahoo.co.in> wr
ote:

> hello
>
> i require to take the modulus of a particular result..
>
> the command in the help window gives the mod of the remainder,...
> example
> AM = a1(1,2) / ( a1(1,1)*r)
> here, a1 matrix and r are already defined.
>
> i require the modulus of AM for further calculations..
> that is.. i want to take the positive value even if the result if
> negative.
>
> plz help
-----
There is a function 'mod' which will give you a non-negative result if
your divisor is positive.  That is, mod(8,5) = 3, mod(-8,5) = 2.  What do
you plan to use as the divisor - is it the denominator above, a1(1,1)*r?
If so, you need that to always be positive.

(Remove "xyzzy" and ".invalid" to send me email.)
Roger Stafford

Report this thread to moderator Post Follow-up to this message
Old Post
Roger Stafford
05-31-05 09:03 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Matlab archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.