Dear Access experts:
Access is returning the error, "Expression too complex," despite only entering
an absurdly simple math function. Is there a way to simplify this any further,
or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7* ( (
b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 - i ) - (
4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) - i ) )
) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/ c ) -
y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ ( z - i )
) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) - 7 ) ) ) - a
) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) + i )/ x )
) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^ e )* ( 8
^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) - z ) ) ) )
) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e ^ (
z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Thank you kindly,
Paul Bremmer, PhD
Harvard University 9 6215
"Dr. Paul Bremmer, PhD" <Pa*********@ha rvard.edu> wrote in message
news:hG******** *************@w agner.videotron .net... Dear Access experts:
Access is returning the error, "Expression too complex," despite only
entering an absurdly simple math function. Is there a way to simplify this any
further, or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7*
( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 -
i ) - ( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) -
i ) ) ) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/
c ) - y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ (
z - i ) ) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) -
7 ) ) ) - a ) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) +
i )/ x ) ) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^
e )* ( 8 ^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) -
z ) ) ) ) ) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e
^ ( z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Thank you kindly,
Paul Bremmer, PhD Harvard University
You can augment the Access execution limits only by becoming an MVP. Or you
can simplify the expression by removing the unneeded pair of parenthesis, as
indicated below:
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7*
( (
b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 -
i ) - (
4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) -
i ) )
) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/
c ) -
y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ ( z -
i )
) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) - 7 ) ) ) -
a
) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) + i )/
x )
) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^ e )*
( 8
^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) -
z ) ) ) )
) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e ^
(
z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
<< Is there a way to simplify this any further >>
E = MC2
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
and ABSURDLY SIMPLE MATH FUNCTIONS re******@pcdata sheet.com www.pcdatasheet.com
"Dr. Paul Bremmer, PhD" <Pa*********@ha rvard.edu> wrote in message
news:hG******** *************@w agner.videotron .net... Dear Access experts:
Access is returning the error, "Expression too complex," despite only entering an absurdly simple math function. Is there a way to simplify this any
further, or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7* ( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 - i ) -
( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) -
i ) ) ) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/ c ) - y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ ( z -
i ) ) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) - 7 ) ) ) - a ) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) + i )/
x ) ) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^ e )*
( 8 ^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) - z ) ) ) ) ) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e ^ ( z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Thank you kindly,
Paul Bremmer, PhD Harvard University
Dear Paul
You make me laugh! Absurdly simple you say. Do you have any idea what
simple means????
I am sure that access can do your math function, but if I was you then I
would break it down into several parts and steps. Now you need to look for
a needle in a haystack. If you break it down, you will also sharply reduce
the chance of making a typo. That is, you can test and check each
individual part of your expression.
Regards
- Nicolaas
"Dr. Paul Bremmer, PhD" <Pa*********@ha rvard.edu> wrote in message
news:hG******** *************@w agner.videotron .net... Dear Access experts:
Access is returning the error, "Expression too complex," despite only
entering an absurdly simple math function. Is there a way to simplify this any
further, or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7*
( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 -
i ) - ( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) -
i ) ) ) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/
c ) - y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ (
z - i ) ) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) -
7 ) ) ) - a ) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) +
i )/ x ) ) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^
e )* ( 8 ^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) -
z ) ) ) ) ) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e
^ ( z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Thank you kindly,
Paul Bremmer, PhD Harvard University
What version of Access are you using? I only use Access 97 and it runs
the expression just fine.
"Dr. Paul Bremmer, PhD" <Pa*********@ha rvard.edu> wrote in message
news:hG******** *************@w agner.videotron .net... Dear Access experts:
Access is returning the error, "Expression too complex," despite only
entering an absurdly simple math function. Is there a way to simplify this any
further, or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7*
( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 -
i ) - ( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) -
i ) ) ) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/
c ) - y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ (
z - i ) ) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) -
7 ) ) ) - a ) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) +
i )/ x ) ) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^
e )* ( 8 ^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) -
z ) ) ) ) ) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e
^ ( z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Access 2003:-
Sub testInsanelyCom plicatedExpress ion()
Dim a, b, c, e, i, x, y, z, answer As Double
Const pi = 3.141592657
a = 0.1
b = 0.2
c = 0.3
e = 0.4
i = 0.5
x = 0.6
y = 0.7
z = 0.8
answer = (((z - (z ^ ((((3 + c) + x) + 3) ^ ((((i - (y * x)) * (7 * (( _
b / (z - (a - z))) ^ (((x - z) ^ ((((((x ^ ((7 * ((4 - i) - ( _
4 - ((y * x) * y)))) + ((y / (y + (((4 - 3) * c) / ((b / z) - i)) _
)) / (c / (y * (((5 + (((73 + (((4 * y) * 7) ^ ((((9 ^ i) / c) - _
y) ^ y))) * z) - (6 / (e * (a + ((z / ((i + pi) ^ ((((3 / (z - i) _
) + (9 / ((y / 5) * (y + (y + (8 + (y / x))))))) * 4) - 7))) - a _
)))))) / (e * ((5 / ((6 / a) / z)) + 36))) / (((z ^ 9) + i) / x) _
)))))) / 2) - 8) - 8) - (((z - ((((i / 4) + (a * 6)) ^ e) * (8 _
^ y))) - (x ^ y)) ^ (y - 7))) ^ a)) / (((a * z) * b) - z)))) _
) - (a + (b + ((i + b) - ((y / 6) + a))))) + pi)))) / ((e ^ ( _
z / (9 + (2 - 8)))) + a)) / 5)
Debug.Print answer
End Sub
Gives me divide by zero error. So at least it's evaluating the expression.
If you supply values for your variables and tell us what the correct answer
is maybe we can help a bit more.
In article <02************ *************** ***@news.terane ws.com>, No*****@SpamNot .net says...
"Dr. Paul Bremmer, PhD" <Pa*********@ha rvard.edu> wrote in message news:hG******* **************@ wagner.videotro n.net... Dear Access experts:
Access is returning the error, "Expression too complex," despite only entering an absurdly simple math function. Is there a way to simplify this any further, or perhaps augment the Access execution limits?
( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7* ( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 - i ) - ( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3 )* c )/ ( ( b/ z ) - i ) ) ) )/ ( c/ ( y* ( ( ( 5 + ( ( ( 73 + ( ( ( 4* y )* 7 ) ^ ( ( ( ( 9 ^ i )/ c ) - y ) ^ y ) ) )* z ) - ( 6/ ( e* ( a + ( ( z/ ( ( i + pi ) ^ ( ( ( ( 3/ ( z - i ) ) + ( 9/ ( ( y/ 5 )* ( y + ( y + ( 8 + ( y/ x ) ) ) ) ) ) )* 4 ) - 7 ) ) ) - a ) ) ) ) ) )/ ( e* ( ( 5/ ( ( 6/ a )/ z ) ) + 36 ) ) )/ ( ( ( z ^ 9 ) + i )/ x ) ) ) ) ) ) )/ 2 ) - 8 ) - 8 ) - ( ( ( z - ( ( ( ( i/ 4 ) + ( a* 6 ) ) ^ e )* ( 8 ^ y ) ) ) - ( x ^ y ) ) ^ ( y - 7 ) ) ) ^ a ) )/ ( ( ( a* z )* b ) - z ) ) ) ) ) - ( a + ( b + ( ( i + b ) - ( ( y/ 6 ) + a ) ) ) ) ) + pi ) ) ) )/ ( ( e ^ ( z/ ( 9 + ( 2 - 8 ) ) ) ) + a ) )/ 5 )
Thank you kindly,
Paul Bremmer, PhD Harvard University
What version of Access are you using? I only use Access 97 and it runs the expression just fine.
I use Access 2003. Why would you drive a Model T when a Ferrari is available?
On Sat, 03 Jul 2004 17:05:59 GMT, Pa*********@har vard.edu (Dr. Paul
Bremmer, PhD) wrote:
Is that why you're hiding behind teranews, a known anonymizer?
And you're driving a 16-bit news reader????
Folks, we're witnessing the birth of another troll.
-Tom.
<clip> I use Access 2003. Why would you drive a Model T when a Ferrari is available? Pa*********@har vard.edu (Dr. Paul Bremmer, PhD) wrote: Message-ID: <hG************ *********@wagne r.videotron.net > X-Complaints-To: ab***@videotron .ca X-Trace: wagner.videotro n.net
We've seen this NNTP server name before.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm
"Tom van Stiphout" wrote Folks, we're witnessing the birth of another troll.
Same troll, different sockpuppet names. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christos TZOTZIOY Georgiou |
last post by:
Hi all,
this post contains at the end a handy module that I've used quite often
when I wanted to analyse the occasional complex expression and how it
was to be evaluated.
The function analyse_expression is called with a single string argument
containing an expression. Names are allowed (actually, preferred over
numbers ;-), since the function eval's in a protected dictionary, where
names are generated as needed.
|
by: gael.pegliasco |
last post by:
Hi,
How are you dear and nice helper :) ?
I'm trying to test xpath with this simple program :
import xml.dom.minidom
from xml.xpath.Context import Context
import xml.xpath
|
by: Brian Sabbey |
last post by:
Here is a first draft of a PEP for thunks. Please let me know what you
think. If there is a positive response, I will create a real PEP.
I made a patch that implements thunks as described here. It is available
at:
http://staff.washington.edu/sabbey/py_do
Good background on thunks can be found in ref. .
Simple Thunks
|
by: |
last post by:
I am trying to run the following agregate function in a parameterized query
on Access2000:
Min(.*sqr(./.)/)
The query saved OK, but an attempt to run it results in the message:
The expression is typed incorrectly or it is too complex to be evaluated
If the sintax correct? Perhaps it is, otherwise it would not save.
What can be done about it?
|
by: Bob Stearns |
last post by:
Is there an easy way (without duplication of the complex expression) to
use the same complex expression in all three places?
Will something like this work?
WITH (SELECT t.*, <complex expr> AS x FROM <base_table> AS t) AS wt
SELECT * FROM wt WHERE ABS(x)<10 ORDER BY ABS(x)
| |
by: Mikel |
last post by:
I am trying to get around the problem "The expression you have entered
is too complex" for a select query. (The example below is not the
expression that is giving me headaches.)
So I am thinking that I just need to do the parsing and calculating in
an event procedure for an "On Click" event.
My question is:
If I have a query field in access97 that parses date (in format
|
by: Q. John Chen |
last post by:
I have Vidation Controls
First One: Simple exluce certain special characters:
say no a or b or c in the string:
*
Second One:
I required date be entered in "MM/DD/YYYY" format:
//+4 How ??
|
by: Andrew |
last post by:
How can I create a property or function for a typed datasets column?
By this I need to add a new column (element) to the table or override an
existing column.
For instance I have an Invoice table that needs to have a Status property.
This status property has to read the other elements in the table to
determine what the status is and return a string.
I know that I can enter this in the expression fields, but as the
expressions become more...
|
by: bvdp |
last post by:
Is there a simple/safe expression evaluator I can use in a python
program. I just want to pass along a string in the form "1 + 44 / 3" or
perhaps "1 + (-4.3*5)" and get a numeric result.
I can do this with eval() but I really don't want to subject my users to
the problems with that method.
In this use I don't need python to worry about complex numbers,
variables or anything else. Just do the math on a set of values. Would
eval() with...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |