Author Topic: elliptic hyperboloid  (Read 8851 times)

0 Members and 1 Guest are viewing this topic.

Offline solomon

  • Newbie
  • Posts: 8
    • View Profile
elliptic hyperboloid
« on: April 17, 2020, 03:37:10 am »
Hi everyone, I don't know how to write this code, can you help? this topic my homework. I need it very fast :(

[odin edit]: restored solomon's original post, so as not to make following replies sound out of context.
« Last Edit: April 17, 2020, 10:07:40 am by odin »

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: elliptic hyperboloid
« Reply #1 on: April 17, 2020, 04:34:33 am »
Multi-variable calculus. Where's Bill when we need him? Oh well, I'll guess something like:

x^2  + y^2 / 4 - z^2 / 9 = 1
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

FellippeHeitor

  • Guest
Re: elliptic hyperboloid
« Reply #2 on: April 17, 2020, 07:28:55 am »
We don’t write homework for people, sorry.

If you already have some code you’re working on and need help with it, post it here and we can assist you.

Welcome to the forum.

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: elliptic hyperboloid
« Reply #3 on: April 17, 2020, 07:40:07 am »
If you just need code for your homework, never mention it is your homework.
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

FellippeHeitor

  • Guest
Re: elliptic hyperboloid
« Reply #4 on: April 17, 2020, 07:46:33 am »
If you need code for your homework, never try to fish for someone to do it for you at the last minute. How about paying attention to class?

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: elliptic hyperboloid
« Reply #5 on: April 17, 2020, 08:09:51 am »
You have given no description of what the program needs to do. You need to draw it? or Solve for third variable when given value of other two?
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline solomon

  • Newbie
  • Posts: 8
    • View Profile
Re: elliptic hyperboloid
« Reply #6 on: April 17, 2020, 08:49:11 am »
Hello, I'm sorry, I am an architect student and I have never taken a code lesson during my education life. but firstly this semester I had 3 hours of lesson. and the corona virus appeared and lessons were canceled. so I asked for help. It was misunderstood. I'm doing a trial course. I will load what I tried.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: elliptic hyperboloid
« Reply #7 on: April 17, 2020, 09:40:11 am »
Forum members are more than willing to help steer you in the right direction where homework is concerned. What we need to see is the code you have written so far on your own. Also, at a minimum, you should be able to supply the math equation(s) needed to calculate your outcome.

Welcome to the forum by the way :-)
In order to understand recursion, one must first understand recursion.

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: elliptic hyperboloid
« Reply #8 on: April 17, 2020, 10:38:07 am »
Is this what you looking for @solomon ?


  [ You are not allowed to view this attachment ]  
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: elliptic hyperboloid
« Reply #9 on: April 17, 2020, 10:42:53 am »
Is this what you looking for @solomon ?


  [ You are not allowed to view this attachment ]

If not, it should be.  That's rather impressive looking!  ;D
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline solomon

  • Newbie
  • Posts: 8
    • View Profile
Re: elliptic hyperboloid
« Reply #10 on: April 17, 2020, 10:51:54 am »
form like that;


I tried a code for this shape and added

Offline solomon

  • Newbie
  • Posts: 8
    • View Profile
Re: elliptic hyperboloid
« Reply #11 on: April 17, 2020, 11:01:20 am »
I don't know how to do the rotation code. I just tried to draw ellipse.

Offline solomon

  • Newbie
  • Posts: 8
    • View Profile
Re: elliptic hyperboloid
« Reply #12 on: April 17, 2020, 11:03:57 am »
Could the rotation code be like this?

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: elliptic hyperboloid
« Reply #13 on: April 17, 2020, 11:07:24 am »
It can be done in OpenGL easily BUT I will wait for @STxAxTIC
I think he is the only one who is going to help you and make you understand the things.
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: elliptic hyperboloid
« Reply #14 on: April 17, 2020, 11:48:49 am »
form like that;


I tried a code for this shape and added

Man the past week I have been admiring that design in a TV commercial. Great as fancy table stand or for holding bowls.

Take a bunch of dowels drill holes through center or some other length, put a string or wire through holes and tie to make circle, then angle them all in same direction. I just tested with 4 pencils and pens and scotch tape.

@Ashish, nice graphic!
« Last Edit: April 17, 2020, 11:50:03 am by bplus »