f

#### Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4

```I don't have matlab and I am trying to translate some simple matlab code.

Does 4/2/2  = (4/2)/2 = 1
or   4/2/2  = 4/(2/2) = 4
```
 0
9/11/2012 2:43:25 PM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader.

3 Replies
3030 Views

Similar Articles

[PageSpeed] 55

```On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote:
> I don't have matlab and I am trying to translate some simple matlab code.
>
> Does 4/2/2  = (4/2)/2 = 1

yes.  At a given precedence level (and obviously two of the same
operators are the same level) evaluation proceeds from LtoR.

....snip...

<http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155>

--

```
 0
none1568 (7453)
9/11/2012 2:57:51 PM
```dpb <none@non.net> wrote in message <k2njh1\$jes\$1@speranza.aioe.org>...
> On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote:
> > I don't have matlab and I am trying to translate some simple matlab code.
> >
> > Does 4/2/2  = (4/2)/2 = 1
>
> yes.  At a given precedence level (and obviously two of the same
> operators are the same level) evaluation proceeds from LtoR.
>
> ...snip...
>
> <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155>
>
> --
There are a few thing you need to understand:
1. You need to get matlab in order to translate the simple code
2. You should define your parameters as in what is the expected output of your search based on the equations used:
Is it : a) 4/2/2
b) (4/2/2)
```
 0
salvinder (8)
9/12/2012 4:13:08 AM
```On 9/11/2012 11:13 PM, Salvinder wrote:
..

> There are a few thing you need to understand:
> 1. You need to get matlab in order to translate the simple code
> 2. You should define your parameters as in what is the expected output
> of your search based on the equations used:
> Is it : a) 4/2/2 b) (4/2/2)

??????

a) One can read Matlab code from the syntax and rules of the language
(else't neither could TMW write the interpreter/jit compiler).

b) >> (4/2/2)==4/2/2
ans =
1
>>

I think we understand these few things...

--

```
 0
none1568 (7453)
9/12/2012 12:35:13 PM
 Reply:

Similar Artilces:

TRSDOS II, version 4.2.0, 4.2.2, 4.2.4, 4.2.6 (or 4.3.x or 4.4)
Hi, Group I require a copy of the above DOS, but I need it _on disk_ as I do not have an emulator for the Model II that must be tested. Is there any possible sources of the OS on disk, or can you advise if the original 8" drive can be hooked to another device so that I can transfer an electronic copy to the disk to boot the machine? What other options do I have? Thanks L replying to my own post :-) I found an article here (http://www.tim-mann.org/trs80resources.html) where Tim describes a trick to rescue a disk's contents. This should be a workable solution...

2 * 2 * 2 * 2 or pow(2, 4)?
Hi , I hope this isn't too trivial to ask, but I'm evaluating a polynomial that involve lots of terms like x^2y^2z^3, and although I can use the power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for example wouldn't be more efficient than pow(x, 2)*pow(y, 2)*pow(z,3). Or is it all the same? Thanks, - Olumide Olumide wrote: > I hope this isn't too trivial to ask, but I'm evaluating a polynomial > that involve lots of terms like x^2y^2z^3, and although I can use the > power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for > exam...

Upgrading 2.4.1 to 2.4.2
Hi, I have Python 2.4.1 and have downloaded 2.4.2. Is there a way to avoid installing everything and, instead, just upgrade? Thanks, Sorin __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com Sori Schwimmer wrote: > I have Python 2.4.1 and have downloaded 2.4.2. Is > there a way to avoid installing everything and, > instead, just upgrade? Run the following code on your 2.4.1 installation and post the results: python -m platform Or, if you prefer: import platform platform.platform(True, False) -- -Scott D...

wxPython 2.4.2.4 segmentation fault on (Python 2.2.2 SuSE 8.2)
Hi everything runs normally but exiting demo.py or any app we get Segmentation Fault wxPython was built from sources (as per readme.1st.txt) as latest downloaded from wxPython site while building wxGTK several errors reported as could not read from makefile.in files please assist Sanjay Minni Note that we used GTK1 i.e. compiled without the GTK2 option on SuSE 8.2 Thanks Sanjay Minni ...

MIME encoding change in Python 2.4.3 (or 2.4.2? 2.4.1?)
I have an application that processes MIME messages. It reads a message from a file, looks for a text/html and text/plain parts in it, performs some processing on these parts, and outputs the new message. Ever since I recently upgraded my Python to 2.4.3, the output messages started to come out garbled, as a block of junk characters. I traced the problem back to a few lines that were removed from the email package: The new Python no longer encodes the payload when converting the MIME message to a string. Since my program must work on several computers, each having a different version of Pyth...

Printing 2^1, 2^2, 2^3, 2^4 and 2^5
Hi, When I use a while loop, the output is: 2 4 8 16 32, as desired: <?php \$c=1; while(\$c<=5) { \$d = newpow(2, \$c); print "\$d "; \$c++; } function newpow(\$base, \$power) { // statements... } ?> The But when I use a for loop, the output is: 64: <?php for(\$c=1; \$c<=5; \$c++); { \$d = newpow(2, \$c); print "\$d "; } function newpow(\$base, \$power) { // statements... } ?> Why is this?? Many thanks, Michael mejpark wrote: > When I use a while loop, the output is: 2 4 8 16 32, as desired: [...] > The But when I use a for loop, the output is: 64...

wxGTK 2.4.2 issues (GTK 2.2.4)
Hello all, I tried the first time my wxMSW application on Linux with wxGTK and I experienced following issues und would like to know if it is a GTK limitation or wx' one: - Loading .xpm - files in .xrc - resources doesn't work (no handler) But perhaps in a toolbar wxBitmap("myIcon_16.xpm") works. - No "real" MDI support and no StatusBar support for Childframes (this _should_ be documented) - wxTE_RIGHT does not work for wxTextCtrl - wxListCtrl in wxLC_ICON - Style aligns the icons to the left. I know that's a Win32-Feature to align the icons "centre" but Evolution also supports this (perhaps Gnome feature?) Thanks, Michael Forstner --------------------------------------------------------------------- Please read http://www.wxwindows.org/mlhowto.htm before posting. To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwindows.org For additional commands, e-mail: wx-users-help@lists.wxwindows.org ...

Upgrade from VO 1 - 2 - 2..1 -2.2 - 2.3 -2.4 - 2.5 - 2.6 - 2.7
About upgrade 2.5 - 2.7 at \$ 384.00 For most products I'm using - the updates (2.0 - 2.1 - 2.7) are free... 2.0 to 3.0 might be worth + 10-30% of the original price? VO is + full price again & again - Full program price for every minor upgrade/bug-fix? I dropped out of the money/bugs [VO] at 2.5 after starting at 1.0 more than 10 years ago. Certainly whoever is making VO have to make a living; earning moneys: - that is OK! A 10 years old VO site; - 10 years later, how much have changed? http://www.yi.com/prany/cavo/cavofront.htm Even MS is not ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1 #2
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1 #2
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Newbie question; why (cons (list 1 2) (list 3 4)) is ((1 2) 3 4) and not ((1 2) (3 4))
Hi, I just started to learn LISP, and stumbled in SICP upon (cons (list 1 2) (list 3 4)) is evaluated to ((1 2) 3 4) I do not understand why this is not: ((1 2) (3 4)) because (cdr (cons (list 1 2) (list 3 4))) is (3 4) and (car (cons (list 1 2) (list 3 4))) is (1 2) Is there a logical explanation? Thank you for your patience. -- Greg Out of order, gregor <gregor@ediwo.com> writes: > Is there a logical explanation? Yes. > I just started to learn LISP, and stumbled in SICP upon But first, let's talk about LISP, Lisp, Scheme and Common Lisp. LISP is the name of the programming language invented in 1959 by John McCarthy and of the first program implementing it written amongst other by Steve Russel, one of his students. LISP 1.5 is a segueing version of that same program dating about 1962 that had some distribution. Then various lisp languages were developed at various places by various teams. Names such as MacLisp, InterLisp, LeLisp, StandardLisp, vLisp, Lisp Machine Lisp, Scheme, GNU Emacs Lisp, etc. It was quite a mess, and people had a hard time sharing programs. So they talked and designed and wrote and voted and produced the ANSI Common Lisp standard (in the USA), meanwhile in Europe they produced the ISO Lisp standard. Nowadays, almost all the other lisps are "dead", with only scheme (current version r5rs, r7r...

Film scanner for 2 1/4 inch by 2 1/4 inch #2
Hi, I have hundreds of APS, 35mm, and 2 1/4 by 2 1/4 inch negatives that I would like to scan. I posted an item on this newsgroup in October, 2003. So far, I have not yet bought a new scanner. My main requirement is that it handles 21/4 inch separate negatives. PC Pro magazine reviewed the Canon Canoscan 8800F recently. See http://www.pcpro.co.uk/reviews/128849/canon-canoscan-8800f.html It gave a good review. I phoned Canon to see if it could handle separate 2 1/4 inch negatives. They said it could. Has anyone used this scanner? If so, that do you think about it. Whi...

PPPD 2.4.1 and 2.4.2 with wvdial 1.53 problem
Hello I have downloaded pppd 2.4.2 (and 2.4.1 after I failed to connect with 2.4.1) and it compiled (both the kernel and the user parts) OK. Without any changes to my wvdial 1.53 conf file, I try to use the new pppd. Result: Feb 13 15:53:16 gw wvdial[2629]: WvDial: Internet dialer version 1.53 Feb 13 15:53:16 gw wvdial[2629]: Initializing modem. Feb 13 15:53:16 gw wvdial[2629]: Sending: AT Feb 13 15:53:16 gw wvdial[2629]: ERROR Feb 13 15:53:16 gw wvdial[2629]: ERROR Feb 13 15:53:16 gw wvdial[2629]: OK Feb 13 15:53:16 gw wvdial[2629]: Sending: ATB0 Feb 13 15:53:16 gw wvdial[2629]: ERROR Fe...

Crash when using wxTextCtrl with xwGTK-2.4.1 and wxGTK-2.4.2 Suse Linux 8.2
I am using trying to add some wxTextCtrl to a frame with the result that the program crashes when starting it. On console the errormessage is (in german) Speicherzugriffsfehler (Don't know what an english Linux would give out-> It means imho that an address is accessed that does not depend to the applications memory space.) It compiles without errors, I tried GTK-2.4.1 & 2.4.2 with the same result. (wxWindows is compiled without GTK2 support !) The code that doesn't work with Linux works on Windows. (9x) I found out that for any strange reason when I add the li...

Load average differences between Apache 1.3.37/PHP 4.4.6 and Apache 2.2.4/PHP 5.2.1
Hi folks, I've encountered something rather strange. This morning, I upgraded our production server, providing web services for our library website, from Apache 1.3.37/PHP 4.4.6 to Apache 2.2.4/PHP 5.2.1. The server, which normally exhibits a load average below 1 most of the time, spiked to loads that approached 100 if left alone. The interesting part of this is that this load average seems to be almost artificial - it appears to be caused by httpd processes stuck in a "closing connection" state (TIME_WAIT, in netstat). These processes are still running according t...

ANN: ActivePython 2.6.2.2, 3.1.0b1.0, 2.5.4.4 is now available
I'm happy to announce that ActivePython 2.6.2.2, 3.1.0b1.0 and 2.5.4.4 are now available for download from: http://www.activestate.com/activepython/ This is a patch release that updates ActivePython to core Python 2.6.2 and 3.1b2. This release also contains updates to Tcl/Tk 8.5.7 and Tix 8.4.3. We recommend that you try 2.6 version first. See the release notes for full details: http://docs.activestate.com/activepython/2.6/relnotes.html What is ActivePython? --------------------- ActivePython is ActiveState's binary distribution of Python. Builds for Windows, Mac OS X,...

[ciao-users] Utility library not being found on ACE/TAO/CIAO 5.4.2/1.4.2/0.4.2
Hello again, I am still attempting to install BBN's quo system and I was just informed that I should use ACE/TAO/CIAO 5.4.2/1.4.2/0.4.2. This is the reason for using an older version. CIAO VERSION: 0.4.2 TAO VERSION : 1.4.2 ACE VERSION : 5.4.2 HOST MACHINE and OPERATING SYSTEM: Dell Dimension 8100 w/ Gentoo Linux (2.6 kernel) TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND VERSION (AND PATCHLEVEL): AREA/CLASS/EXAMPLE AFFECTED: CCF library DOES THE PROBLEM AFFECT: COMPILATION? If so, what do your \$ACE_ROOT/ace/config.h: // -*- C++ -*- // // config-linux.h,v 4.41 2004/04/22 20:54:00 shuston Exp // The following configuration file is designed to work for Linux // platforms using GNU C++. #ifndef ACE_CONFIG_LINUX_H #define ACE_CONFIG_LINUX_H #include /**/ "ace/pre.h" #define ACE_PLATFORM_CONFIG config-linux.h #include "ace/config-linux-common.h" #define ACE_HAS_SVR4_DYNAMIC_LINKING #define ACE_HAS_AUTOMATIC_INIT_FINI #define ACE_HAS_DLSYM_SEGFAULT_ON_INVALID_HANDLE #if !defined (ACE_MT_SAFE) #define ACE_MT_SAFE 1 // JCEJ 12/22/96 #1 #endif #if ACE_MT_SAFE // Yes, we do have threads. #define ACE_HAS_THREADS // And they're even POSIX pthreads (LinuxThreads implementation) #define ACE_HAS_PTHREADS // ... and the final standard even! #define ACE_HAS_PTHREADS_STD ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issue 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issue 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Wanted: Computer Gaming World issues 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum Darkstar wrote: > Good day, > > I am looking for the following issues of Computer Gaming World > magazine: > > 2.2, 2.4 (1982) > 4.1 (1984) > > I'm willing to purchase or trade... thanks for your help! > > Steph Git on over to comp.sys.ibm.pc.games.marketplace wit'cha! ;o) ...

Wanted: Computer Gaming World issue 2.2, 2.4, 4.1
Good day, I am looking for the following issues of Computer Gaming World magazine: 2.2, 2.4 (1982) 4.1 (1984) I'm willing to purchase or trade... thanks for your help! Steph -- cgw.vintagegaming.org The Computer Gaming World Museum ...

Web resources about - Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4 - comp.soft-sys.matlab

Who Will the Public Blame For Violence at Trump Rallies?
Unless you just woke from a coma, you know what's been going on at Donald Trump's rallies over the past few days. After months of protesters ...

How Kyle Vogt Sold Cruise Automation to GM, Twitch to Amazon
Mark Bergen / Re/code : How Kyle Vogt Sold Cruise Automation to GM, Twitch to Amazon — Ten years ago, Justin Kan and Emmett Shear had just sold ...

South Korea, US deter North Korea with 'largest ever' military drill
CNN South Korea, US deter North Korea with 'largest ever' military drill CNN Pohang, South Korea (CNN) Amid blasts of explosives and camouflaging ...

Lil Wayne Name Drops: ‘Love & Hip Hop,’ Cat Rapper, Dres Anderson
Lil Wayne name dropping appears to be at an all-time high in early March as he has been blazing trails with an upcoming show at SXSW on top of ...

Year in space astronaut hangs up his spacesuit, retires
Business Insider Year in space astronaut hangs up his spacesuit, retires Business Insider FILE - In this Wednesday, March 2, 2016 photo provided ...

21’s Bitcoin computer now lets developers buy and sell API calls without a credit card
After launching a small Linux-based device that can mine Bitcoin and make machine-to-machine payments last year, 21 has launched a micropayments ...

New find of suspected MH370 debris to be sent to Australia
A new piece of debris found by a South African holidaymaker that could be a part of the missing Malaysian flight MH370 will be sent to Australia ...

Coming at Apple's March 21st event: 4-inch iPhone SE, 9.7-inch iPad Pro & new Apple Watch models
Mark Gurman / 9to5Mac : Coming at Apple's March 21st event: 4-inch iPhone SE, 9.7-inch iPad Pro & new Apple Watch models — If Apple's most recent ...

Obama daughters take centre stage at star-studded dinner for Justin Trudeau
First daughters Sasha Obama, 14, and Malia Obama, 17 – attending their first such black-tie affair – took centre stage at a glittering dinner ...

Joe's Crab Shack apologizes for photo of black man's 1895 hanging at table
People Magazine Joe's Crab Shack apologizes for photo of black man's 1895 hanging at table Charlotte Observer An image on a table at a Joe's ...

Resources last updated: 3/12/2016 8:24:15 AM