COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### [newbie] Basic plotting question

• Email
• Follow

```Hi,

I am trying to solve an implicitly defined equation and plot the
results at the same time.

'n' is the sequence of integers (0,1, 2,...) 'kn' and 'mn' are defined
as solutions to
2^kn+mn = n & 0 <= mn < 2^kn

A solution should always exist, however it might not be unique given
that there is only one equation for two unknowns. So,

1) How can I see the (possibly multiple) solutions?

2) And then plot them as functions of 'n'?

Thank you,

T
```
 0
Reply tzygmund (9) 7/4/2009 9:54:48 PM

See related articles to this posting

```On Jul 4, 5:54=A0pm, tzygmund <tzygm...@googlemail.com> wrote:
> Hi,
>
> I am trying to solve an implicitly defined equation and plot the
> results at the same time.
>
> 'n' is the sequence of integers (0,1, 2,...) 'kn' and 'mn' are defined
> as solutions to
> 2^kn+mn =3D n & 0 <=3D mn < 2^kn
>
> A solution should always exist, however it might not be unique given
> that there is only one equation for two unknowns. So,
>
> 1) How can I see the (possibly multiple) solutions?
>
> 2) And then plot them as functions of 'n'?
>
> Thank you,
>
> T

why don't you plot this two functions f1=3D 2^kn+mn - n and f2=3Dmn-2^kn
over n and see whether the function f1 intersects n-axis in the
positive region defined by f2! See once plot technique in matlab.
```
 0

1 Replies
58 Views

Similar Articles

12/11/2013 9:47:32 AM
[PageSpeed]

Similar Artilces:

Newbie basic question.
Hi All I have read the FAQ, and still cannot find the answer, so I'll ask the experts here. Is there any basic (read easy) introduction to the theory and practical application of neural networks for someone who severely lacks the maths and brainpower necessary to read the more university level publications. Thank you for any help Josh Actually many of the ideas behind neural nets are quite simple, but can be somewhat precluded by math (though I'm not saying the math is not important in certain contexts). Two books I would recommend: 1) Robert Callan: "The essence of Neural ...

Basic c question from a newbie
Hi all, I am new to embedded field and I found following function prototype.I am not getting why the parameter is declared as volatile.what happens if it is not volatile.Any pointers on this will be appreciated. unsigned char Get_backup(volatile unsigned char *addr); This function is used to get the data from Flash located at addr. Thanks in advance, Hi Prashna! Not the parameter is declared volatile, but the unsigned char the pointer points at. This is normally done to make sure the value of the unsigned char is not held in a register inside the function. ( It may change unexpectedly bec...

Ircle
When I'm in a channel but away from my computer for a while, and someone messages me, is there any way of seeing the message/s I've received while I've been doing something else? (assuming the message/s have moved off the console) Alternatively, is there any way to increase the number of lines of text shown in the console, so I can increase the amount of time before old messages are pushed off the screen? On 2005-10-27 09:45:43 -0700, harrychrishner@aol.com said: > When I'm in a channel but away from my computer for a while, and > someone messages me, is there any way...

Really basic newbie question about hashes
This is simplified, but shows what I want to do. I have the following hash: %TAGS = ( org_code => { 'A', 'B', 'C', 'D', }, priority => { '1', '2', '3', '4', }; budgeted => { 'yes', 'no', 'TBD', }; ); I want to print out either "A,B,C,D", "1,2,3,4", or "yes,no,TBD" based on whether ...

java newbie
Hello I 'm new to java and I want just to ask about the shortest possibleway to read user input from console. I found this : char tmp; Integer liczba = new Integer (0); StringBuffer buffer; buffer=new StringBuffer();while((tmp = (char)System.in.read())!='\n') buffer=buffer.append(tmp); liczba=Integer.parseInt(buffer.toString().trim());Since in c++ it does take significantly less code to implement. On Jul 3, 11:01 am, "Thomas" <arab...@o2.pl> wrote:> Hello I 'm new to java and I want just to ask about the shortest possible> way to read user input fro...

Basic question, newbie PHP coder
Hello Gurus, Can you recommend a decent PHP editor that has the IntelliSense feature? It's a great help for newbies I think. It used to help me heaps in Visual Studio. Kind regards. "Eli6" wrote: > Hello Gurus, > Can you recommend a decent PHP editor that has the IntelliSense > feature? It�s a great help for newbies I think. It used to help > me > heaps in Visual Studio. > Kind regards. I don�t know about IntelliSense, but if you are talking about code completion, function/variable prompts, etc. then I highly recommend Zend IDE. I have used it for almos...

basic newbie questions - cannot remote login
ok at first i could not login but then i edited the \etc\default\login file and i could get access. i've sisce rebooted and the file is still as edited but now when ever i try to connect to either port 22 or 23 i get connection refused i can log on ok locally. I can ping the server ok also how can i start the CDE from the command line ? thanks. "droodle" <droodleskins@hotmail.com> writes: > ok at first i could not login but then i edited the \etc\default\login > file and i could get access. > > i've sisce rebooted and the file is still as edited but...

Newbie question...simple rule question...
Dear All, I am trying to understand the best way to write a rule which checks on all the elements. ------------- people(a). people(c). ok(b). ok(a). everybodyok_works :- findall(X,ok(X),List),maplist(people,List). everybodyok_bad :- people(X),ok(X). ------------- What am I missing? Is there a better way to write rule which says: "Everybody is ok if for all people we know has said they are OK." ? Thanks in Advance, Mans On 2005-08-11, mans <mshapshak@gmail.com> wrote: > Dear All, > > I am trying to understand the best way to write a rule which checks on > a...

Newbie question.
Newbie to Linux that is. Please have mercy on a person about to move from Windows VC++/Borland CBuilder to Linux and hold the flames. What is the difference between g++ and gcc ?? My new books are split between the two. For a while I thought there was no difference since "man g++" and "man gcc" seem to bring up the same page. But, just playing around with a very (VERY) simple main.cpp like this... #include <iostream> using namespace std; int main() { cout << "Test\n"; return 0; } shows that g++ compiles it just fine and gcc chokes on it. So...

Basic Questions
I would like to get a little bit of hands on experience with PL/SQL, Developer 6.0, and Report Writer on Oracle in the next few days. I'm very fluent with DB2 and many of its tools and techniques and pretty functional with MySQL but have never used Oracle so I'm not sure what all the different components of Oracle are. I'd like to install a basic environment on my PC so that I can use the tools I mentioned but I don't want to get bogged down in installing/configuring a bunch of stuff that isn't relevant. Can anyone tell me what I need to install and where ...

newbie question
Hello I noticed the following example somewhere def mymethod(opts) p opts end mymethod(:aaa => "something") I'm wondering what this :aaa stands for. If I omit the colon before the dummy aaa, it doesn't works. Thanks for any hint/light. -- michel marcon (aka cmic) sysadmin On Nov 22, 11:55=A0am, cmic <c...@live.fr> wrote: > Hello > > I noticed the following example somewhere > > def mymethod(opts) > p opts > end > mymethod(:aaa =3D> "something") > > I'm wondering what this :aaa stands for. I...

newbie question
Hello: I want to design a board with an altera FPGA and DDR (about 2Gigabytes) so that I can read and write from this RAM at high data rates. From what I understand Altera provides users with cores for interfacing with DDR. My questions are: 1) Are there any daughterboards already in existence (with DIMM sockets) that I can interface to a development board from Altera? 2) Has anybody done this with success? Are there any resources on the net that I can read on precautions that must be taken when attempting to interface an FPGA with DDR, layout ideas, etc.? Thanks. John ...

Very Newbie Question
Hello all, I had a question regarding header files in C. If you include a standard header file, such as <stdio.h>, in your code, the conventional wisdom says that the function prototypes contained within stdio.h will be placed into the .c source code file referencing the .h file by the preprocessor. My question is, whether one is dealing with a standard ..h file such as stdio.h or a user-defined .h file, how does the compiler find the source code file containing the code for the functions whose prototypes are defined in the .h file that the coder is using? An example to better explai...

Newbie Questions
Hi All, I'm strting work on a monitoring system for my own house which will be built soon. It has a simple purpose - video monitoring our house from work while the babysitter is with our child. I have that part pretty well planned out already, but now I think I'd like to add other features such as lighting control, temp. monitoring etc., Can someone please kindly point me to any information, groups or vendors who sell this kind of equipment? i.e. a thermostat that can be controlled via LAN,(wireless/wired). My biggest priority is that these devices need to be accessed via TCP/IP and...

Newbie question
Hi, I'm migrating from web app development using cgi to that using java struts. Could someone tell me if web apps designed using java structs have any particular security vulnerability? Are these web apps equally prone to attacks such as XSS, SQL injection, buffer overflow just like cgi or are they better/worse? I would really appreciate it if someone could point me to links which will give me details on testing webapps designed in java struts. Thanks. These links should provide a summary of what you're asking for... :-) http://www.google.com.au/search?q=jsp+security+vulnerabilit...

newbie question!
Hi, I would like to write a spectogram plotter, a frequency versus time plot which should be updated throughout infite time, and need some advice on how to do this using OpenGl. I have only been reading about OpenGl for 3 days now so I don't know much about it. I have had a look at the OpenGl specification but didn't find any guidelines on how to realize a spectogram as described above. Currently I have the frequency domain data available at every 20ms which is want to plot. I'm thinking that I should allocate a 2D buffer which should be updated every 20ms. For example the...

Newbie question
I have a newbie question. What command I use to see if there are any extra spaces with in the line by using grep? I assumed I would look for all line that didn't have a 0-9 a-z A-Z? Is this how I would do that and how would the command read? Thanks for your help. In article <1129573153.619286.265680@g43g2000cwa.googlegroups.com>, WebGod@aol.com wrote: > I have a newbie question. What command I use to see if there are any > extra spaces with in the line by using grep? I assumed I would look What are "extra" spaces? How many spaces can you have before the re...

newbie question
Hi all, I am trying to get into FPGA development, just wonder besides "FPGAs are fun" (http://www.fpga4fun.com/WhatAreFPGAs.html) and opencores.org, is there any other sites I can find good introductary materials? My main interested is CPU cores and floating point units for DSP/control type of applications. Thanks in advance. Hi, for lots of information and links about vhdl and cores have a look at http://tech-www.informatik.uni-hamburg.de/vhdl/ Have fun Eilert ppirrip schrieb: > Hi all, > > I am trying to get into FPGA development, just wonder besides "FPG...

newbie question
Writing simple program asking a question with the answer being "yes"...how do I allow the correct answer if user types Yes, yes, or YES? Thanks On Sun, Jun 23, 2013 at 12:39 PM, <christhecomic@gmail.com> wrote: > Writing simple program asking a question with the answer being "yes"...how do I allow the correct answer if user types Yes, yes, or YES? The thing you're looking for is case-folding, or possibly lower-casing. You should be able to find what you want with that. :) ChrisA On Saturday 22 June 2013 22:46:51 christhecomic@gmail.com did opine...

newbie question
Hi, I am a hardware enginneer and know very little about C program. Recently I need to perform the following function: Change file A: a b c d e 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 TO file B: b e d c a 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 Is there any example that can show me how to do this? Thanks for help! James On 4 Sep 2003 12:18:08 -0700 chkst30b@yahoo.com (littlebean) wrote: > Hi, > I am a hardware enginneer and know very little about C program. > Recently I need to perform the following function: > Change > file A: a b c d e >...