Jump to content

RyanJ

Senior Members
  • Posts

    2246
  • Joined

  • Last visited

Everything posted by RyanJ

  1. So, I was correct in my initial assumptions then? Ha, the irony. I had attempted to solve it as a simultaneous equation but I figured that was the wrong method and abandoned it. Thanks for the answer!
  2. Hello all! It's been quite a while since I posted here. I noticed this question while trying to help a niece solve a piece of homework and I just couldn't figure this one out. This isn't homework for me, trust me, I have left school long ago. Could someone enlighten me as to the solution for this one and how to go about solving them? Just in case I need to assist with homework again in the future... at least then I'll be able to provide pointers. I also hate not being able to answer such things. I had initially attempted to treat it as a simultaneous equation but I'm not convinced that it's the correct way to handle this one. Thanks!
  3. Sorry but that really doesn't make any sense at all to me. I came up with something like this last night - though it may not be correct: (interestWanted * daysInYear) / interestRate)
  4. Hi guys! It has been a while since I last posted and I've come with a problem. I know the formula for calculating the future value of a value with compound interest is: [latex]PV = \frac{FV}{\left( 1 + i \right)^n}[/latex] However. I need to figure out how much interest you'd need in order to reach a specific amount of interest per day. For example. I'd need to know how much money I'd need at, say, 7% interest rate per yet in order to get £10 a day interest. I've been unable to figure this out so any help here would be appreciated. This has been giving me a bit of a headache - it's for an excel project I'm working on.
  5. Hi all, Does anyone know of a PHP compound parser that takes a compounds formula as input (e.g. UO2(CO3)) and then spits out an array of the element symbols with the number of each present in the specified formula, in this case U=1, O=5,C=1. Any help appreciated!
  6. The site references nitrogen dioxide, both the name, formula and CAS number to that page - which was apparently an error. I'm told that they'll be trying to fix it asap. Thanks all!
  7. Hi everyone! While browsing through a chemical database site I came upon an entry for nitrogen dioxide that showed the nitrogen having a positive charge: http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=3609161&loc=ec_rcs Is this correct? Shouldn't this molecule actually be neutral? Have they confused it for something else? Thanks.
  8. Hi everyone! I am looking for some new books so I am interested in some good books about black holes, white dwarfs, neutron stars, magnetars and maybe theoretical objects like quark stars and so on. Not necessarily a technical reference book but books involving those, especially the quark stars would be great! Any suggestions?
  9. I know that. Actually that's what I'm working on at the moment I'm thinking of using pattern match and possible techniques such as entropy and compressibility in cases where patterns are not clear cut. The program is being written in C# and WPF so if anyone wants to take a look and work on this with me - feel free to let me know
  10. I know. It uses a pattern matching approach. However it also fails with files that have no structure, such as ISO files.
  11. That's the idea. Though that uses a trick called magic numbers which misses most file types these days.
  12. Hey there guys! I have a question for anyone. Maybe some code already exists for this or a good algorithm is already written down somewhere. Basically what I'm trying to do is make an unknown file type identifier. I'm trying to find if there are any .NET implementations of a file-type matching algorithm out there but I can't seem to find one. Or a good description of an implementation in another language. If there are none then can anyone point me in the general direction of writing one? I'm looking for help with the project so if anyone else is interested in this let me know. Cheers!
  13. Yeah. I understand what you are saying. I can upload the C# project if anyone else wants to experiment with it. To see what other things we can do. Though you would need Mathematica in order to process the codes.
  14. I think that is just the rest of the number I chose to fold the lines. When I choose 10 cells per line it doesn't have the horizontal rows like that.
  15. II eventually gave up on trying to perfect the formula in Mathematica so I wrote a program to generate the code for me. Here is the resulting image if anyone is interested: http://bayimg.com/lAlKLaaCp The highest prime used in this list is 104729.
  16. This is the formulation I ended up working with. It does what I need: Size = 300 Image[Table[if[PrimeQ[y* (Size - 1) + x], 1, 0], {x, 1, Size}, {y, 1, Size}]] Edit: That actually doesn't seem to work correctly. I may need to do some more work on it.
  17. The closest I've got so far is this: Image[Table[if[PrimeQ[x], 1, 0], {x, 1, 800}, {y, 1, 800}]] That makes an image but shows each line as either black or white instead of each cell. I know I need to build a table and put it into the Image function but I can't figure out how to do it.
  18. Hey guys! It has been a while since I posted so hopefully this one will be good. Basically I have a table of prime numbers. What is to write this table as an image - from 1 too 480000 - showing each cell that is a prime as white and the others as black. So basically I'm cycling the numbers from 1-480000 and if they are prime then I want the cell white and otherwise black. I also want to be able to wrap the table to 800x600 pixels. Any help appreciated.
  19. RyanJ

    Invisibility

    Such a thing has been done, with microwaves anyway. Look up negative refractive index or metamaterial on the internet and you'll find plenty of interesting articles about it.
  20. You make a good point. I didn't consider .NET languages. Well pointed out. I'd give you a rep point for it but looks like I've got to give others first I guess you win. You got me there.
  21. I know what it means I'm just saying that the philosophy of the two language designs is different. You don't often see super-large scripted programs while you often see very large compiled programs.
  22. I understand the differences but you often find that the philosophy of a JIT language is different from that of a compiled one. Say, for example, in a scripted JIT language you could have a file to be processed and output native code that when executed would also be just as fast as usual compiled code (it's how my eBook organiser works). This is far more difficult with a compiled language.
  23. I don't really agree since JIT is classed as "compile-at-runtime" not compile then run. They may have the same underlying concept but the philosophy is totally different.
  24. I second bascule. However Ruby does have some very strange language syntax structures and some people find it difficult to move to other languages like PHP or C afterward. Personally I started head first with C++ and it never did me any harm. Except for that dent on my head just won't go away after bashing it against my computer in frustration for weeks on end.
  25. Languages with JIT execute almost as fast as native code these days. The advantage being that scripted languages are normally easier to work with than compiled languages. These days the boundaries are quite grayed out. Some languages can be both or either depending on how they are used.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.