Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 76983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:45:32+00:00 2026-05-10T20:45:32+00:00

Learning a little about T-SQL, and thought an interesting exercise would be to generate

  • 0

Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it.

Turns out someone already has (and recently, it appears). I’ll let someone else post it as an answer, but I’m curious what optimizations can be made.

Alternately, what would you do to make the code more readable?

I’ll select the most readable (yet reasonably compact) version as the accepted answer (too bad we don’t have rep bounties yet!) unless someone really comes along with a great optimization.

Bonus points to those answers that teach me a little something about T-SQL.

-Adam

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:45:32+00:00Added an answer on May 10, 2026 at 8:45 pm
    Create PROCEDURE dbo.mandlebrot @left float, @right float, @Top float, @Bottom float, @Res float, @MaxIterations Integer = 500 As Set NoCount On  Declare @Grid Table (     X float Not Null,      Y float Not Null,     InSet Bit    Primary Key (X, Y))  Declare @Xo float, @Yo float, @Abs float Declare @PtX Float, @PtY Float Declare @Iteration Integer Set @Iteration = 0 Select @Xo = @Left, @Yo = @Bottom  While @Yo <= @Top Begin     While @Xo <= @Right Begin         Select @PtX = @Xo, @PtY = @Yo         While @Iteration < @MaxIterations              And (Square(@PtX) + Square(@PtY)) < 4.0 Begin             Select @PtX = Square(@PtX) - Square(@PtY) + @Xo,                    @PtY = 2* @PtX * @PtY + @Yo             Select @Iteration, @PtX, @PtY             Set @Iteration = @Iteration + 1         End         Insert @Grid(X, Y, InSet)          Values(@Xo, @Yo, Case              When @Iteration < @MaxIterations                     Then 1 Else 0 End)         Set @Xo = @Xo + @res         Set @Iteration = 0     End     Select @Xo = @Left,             @Yo = @Yo + @Res End  Select * From @Grid 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 134k
  • Answers 134k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer static IEnumerable<DateTime> AllDatesBetween(DateTime start, DateTime end) { for(var day =… May 12, 2026 at 6:44 am
  • Editorial Team
    Editorial Team added an answer There are two concepts that are close but should not… May 12, 2026 at 6:44 am
  • Editorial Team
    Editorial Team added an answer There are GIS and Spatial Extensions to mySql in version… May 12, 2026 at 6:44 am

Related Questions

I am a little ashamed to say that I have never used an ORM;
This is a shoutout as I've been spending the last few days learning about
I currently use Python for most of my programming projects (mainly rapid development of
I've been coding in C# for a while, A little over a year professionally,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.