Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4I 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
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>
--
dpb <none@non.net> wrote in message <...
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...
Printing 2^1, 2^2, 2^3, 2^4 and 2^5Hi,
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...
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
...
porting network driver from 2.2.x to 2.4.x #2Hello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
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**2 wrong? Bug?In Python 2.5 on intel, the statement
2**2**2**2**2
evaluates to
>>> 2**2**2**2**2
20035299304068464649790723515602557504478254755697514192650169737108940595563114
53089506130880933348101038234342907263181822949382118812668869506364761547029165
04187191635158796634721944293092798208430910485599057015931895963952486337236720
30029169695921561087649488892540908059114570376752085002066715637023661263597471
44807111774815880914135742720967190151836282560618091458852699826141425030123391
10827360384376787644904320596037912449090570756031403507616256247603186379312648
4703743782954975613770...
linspace(2,2,2) returns [2 2] ??May be the help for linspace should change?
It says:
"LINSPACE(X1, X2, N) generates N points between X1 and X2."
Notice, it says BETWEEN.
But when I ask for 2 points, between 2 and 2:
----------------
EDU>> linspace(2,2,2)
ans =
2 2
---------------
May be mathematically this is ok? i.e. there are infinite points between
the point and itself? (on the real line), but from programming point of
view, it is confusing. no?
--Nasser
Maybe it should say "generates N points between X1 and X2, inclusive."
What did you expect to...
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.7About 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 ...
RE: wxGTK 2.4.2 issues (GTK 2.2.4)> On Tue, 21 Oct 2003 08:00:06 +0200 Forstner Michael=20
> <Michael.Forstner@cpg.de> wrote:
>=20
> FM> - Loading .xpm - files in .xrc - resources doesn't work=20
> (no handler)
>=20
> Even after wxInitAllImageHandlers()?
I will try that - makes sense because it happens in a logindialog
when wxApp:OnInit() isn't finished.
> FM> - wxListCtrl in wxLC_ICON - Style aligns the icons to the left.
> FM> I know that's a Win32-Feature to align the icons "centre" but
> FM> Evolution also supports this (perhaps Gnome...
Upgrading 2.4.1 to 2.4.2Hi,
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...
2.4.2 -> 2.5.2 / Mingw/GCC 3.2 / W2Khi,
confirming my app-code to 2.5.2, two problems are left:
wxSlider wouldn't show the selected value field anymore:
wxSlider(
m_p_editmask,
196,
0,
0,
120,
wxPoint(20, 240),
wxSize(300, 24),
wxSL_HORIZONTAL | wxSL_AUTOTICKS | wxSL_LABELS,
wxDefaultValidator,
"wait"
);
as it did before with 2.4.2
Got a lot of
Can't verify memory struct - all bets are off! (common/memory.cpp[424])
messages, removed most by taking away the deletes for the class objects
created by new,
but my (pro)file-handling is managed by:
WX_DE...
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2I've been tasked with upgrading the JVM from
1.3 to 1.4, and the third party libraries used
by my company on our existing Java framework.
I'm most worried about any problems that may occur
due to upgrading Xalan and Xerces as our framework
performs much XML transformation and processing.
Does anyone have a link to known issues with such
an upgrade (besides the Xalan / Xerces sites) ?
Or has anyone done such an upgrade and can share
their pearls of wisdom?
Thanks
Chris
...
Wanted: Computer Gaming World issues 2.2, 2.4, 4.1 #2Good 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 #2Good 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 #2Good 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 #2Good 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
...
Concurrent usage of glibc 2.2.4 and 2.3.2I'm trying to run applications that need glibc 2.2.4 in a
Linux (formerly RH 7.2, but kernel + most apps + gcc + glibc
updated) box whose current glibc is 2.3.2 (obtained from
Fedora's glibc-2.3.2-101.4.i386.rpm). I have several questions
where I'd appreciate some help.
- checking the version definitions for both runtime
loaders (RTLs, or ld-linux.so), I see that:
- both RTLs define ld-linux.so.2, GLIBC_2.0, GLIBC_2.1
- ld-2.2.4.so defines versions GLIBC_2.1.1, GLIBC_2.2,
GLIBC_2.2.3, which ld-2.3.2.so does not
- ld-2.3.2.so defines GLIBC_PRIVATE and GLI...
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...
porting network driver from 2.2.x to 2.4.xHello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
porting network driver from 2.2.x to 2.4.xHello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
porting network driver from 2.2.x to 2.4.xHello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
VIBE 2.2 #2About: Visual Information Broker Enterprise (VIBE) is an IDE that
enables application developers to automate the design and development
of infrastructure components for complex distributed cross-platform,
cross-language systems applications. You can define messages and
generate infrastructure support code for the IBM MQ information bus,
Sybase, Microsoft SQL Server, Oracle, and other JDBC compliant
databases, XML with transformations that use tools like XSL, and J2EE.
It also includes a fully functional Business Rules engine, along with
a graphical programming environment.
Changes: This relea...