LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > Bits and Pixels
User Name
Password

Notices

Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
Uncategorized Entries with no category
Old

More fun with Haskell plotting: Functions of functions

Posted 04-08-2013 at 01:56 AM by hydraMax (Bits and Pixels)

Code:
import Graphics.Gnuplot.Simple
f x a = (x + a) * (x - a) * (x + 2*a)
fs f l = map f [1..l]
main = plotFuncs
         [Key Nothing, Title "(x + a)(x - a)(x + 2a) for a over 1..10"]
         (linearScale 1000 (-10,10))
         (fs f (10 :: Double))
See attached graph.
Attached Images
File Type: png (x+a)(x-a)(x+2a).png (83.9 KB, 4 views)
Member
Posted in Uncategorized
Views 348 Comments 0 hydraMax is offline
Old

Stop Giving Your Money to the Hollywood Scumbags

Posted 03-22-2013 at 12:14 PM by hydraMax (Bits and Pixels)

who are destroying your freedom. (Not to mention the moral fabric of society, but that's another subject.) Stop paying for the movies of the Godless freedom-haters, who are leveraging every trick in the book to destroy the Internet and to take control of what you can do with your own hardware.

https://www.eff.org/deeplinks/2013/0...-w3c-standards

If I might be a bit more incendiary: Give up Netflix. I scrapped my Netflix Roku box over a year...
Member
Posted in Uncategorized
Views 362 Comments 0 hydraMax is offline
Old

Funny: How a Common Lisp Programmer Views Users of Other Languages

Posted 03-05-2013 at 10:05 PM by hydraMax (Bits and Pixels)
Tags humor, lisp

http://vintage-digital.com/hefner/mi...rogrammers.jpg

Member
Posted in Uncategorized
Views 691 Comments 0 hydraMax is offline
Old

Funny: Some pictures from a developers life

Posted 03-01-2013 at 11:45 AM by hydraMax (Bits and Pixels)

Pictures from a developers life

Not my work, but rather a link I got off my LUG.
Member
Posted in Uncategorized
Views 2140 Comments 1 hydraMax is offline
Old

C++ had lambda functions!

Posted 01-31-2013 at 02:21 AM by hydraMax (Bits and Pixels)

I'm doing a CS class which forces me to use C++. I was not very excited about this. However, I have recently be greatly encouraged by the discovery that C++ does, in fact, have lambda functions (or, more properly, anonymous functions) at least in the C++11 standard:

https://en.wikipedia.org/wiki/Anonym...ctions#C.2B.2B

Basically, the big deal here is that I can construct new functions /inside/ of other functions, and even capture variables from the context. This,...
Member
Posted in Uncategorized
Views 460 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration