Login

Welcome, Guest. Please login or register.

October 21, 2025, 11:43:18 pm

Author Topic: Help with Computing- ENG1060  (Read 1229 times)  Share 

0 Members and 1 Guest are viewing this topic.

simba

  • Guest
Help with Computing- ENG1060
« on: April 10, 2014, 08:41:50 pm »
0
Hey all!

I've really been struggling hardcore with the computer labs for computing next week and was wondering if anyone could possibly help? I'e spent about 5 hours on it and have only been able to figure out question 1 and 2a :( :(

Any help whatsoever would be massively appreciated!! I'm at the point of throwing my laptop out the window and becoming a stripper D:

alchemy

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1222
  • Respect: +25
Re: Help with Computing- ENG1060
« Reply #1 on: April 10, 2014, 09:24:18 pm »
0
Hey all!

I've really been struggling hardcore with the computer labs for computing next week and was wondering if anyone could possibly help? I'e spent about 5 hours on it and have only been able to figure out question 1 and 2a :( :(

Any help whatsoever would be massively appreciated!! I'm at the point of throwing my laptop out the window and becoming a stripper D:

This is actually so cool!!! My experience with Matlab is very limited, so I'm afraid I can't help you in that.. I could manage to do question 1 and 3 on C/C++, but that's about it. I've already done question 2 in the past (it's a very common one). Might I add that if you've been using 'Sieve of Eratosthenes', 'Sieve of Atkin' is more efficient, although I haven't implemented it myself. Have a read here though if you're interested: http://en.wikipedia.org/wiki/Sieve_of_Atkin
OMG, engineering seems so fun!!! <3

b^3

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3529
  • Overloading, just don't do it.
  • Respect: +631
  • School: Western Suburbs Area
  • School Grad Year: 2011
Re: Help with Computing- ENG1060
« Reply #2 on: April 10, 2014, 09:46:53 pm »
+1
2b) Use the input function to get the variable, e.g. a=input('enter text to display here\n') (the \n is so that the input will go on the next line).
Then you'd be able to call a(1) and a(2) to get the two numbers they entered and work on that from there. To check if they're prime or not, maybe try doing a loop for all the numbers that are below it up to the number and testing if there are any that divide fully, you might want to check up the mod function for that (just type "help mod" in the command window). Once you've got all of that nvm just call the function you wrote in a, but use a loop to check all the values in that interval, so "for i=a(1):a(2)" e.t.c. I'm not sure how they're getting you to print them so not sure why you'd need strcmp or num2str.

3 - I guess see the previous lab

4 - It'd be easier to set it up as a funciton handle, then just call that function, e.g. tay=@(x) 'equation here', so that you can just go tay(2) later on. The error threshold bit is getting at how far off the actual value you are. So at the end of each loop you'd readjust the error you have, and have it in a while loop , 'while error>precision'., so yeah compare what you have to the inbuilt sine function each loop.
Hey all!

I've really been struggling hardcore with the computer labs for computing next week and was wondering if anyone could possibly help? I'e spent about 5 hours on it and have only been able to figure out question 1 and 2a :( :(

Any help whatsoever would be massively appreciated!! I'm at the point of throwing my laptop out the window and becoming a stripper D:
Just don't give up yet! I think doing computing in first semester would be a bit harder since sometimes you might not have covered the maths that you were using yet to have any idea of what you're actually doing. There's also getting used to matlab, which is a pain in the ass starting out. You get used to it after a while, it all comes with practice really.
2012-2016: Aerospace Engineering/Science (Double Major in Applied Mathematics - Monash Uni)
TI-NSPIRE GUIDES: METH, SPESH

Co-Authored AtarNotes' Maths Study Guides


I'm starting to get too old for this... May be on here or irc from time to time.

hobbitle

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1235
  • Respect: +110
Re: Help with Computing- ENG1060
« Reply #3 on: April 10, 2014, 10:14:52 pm »
0
Holy hell that's a massive assignment for 2%. Most of those tasks are not complicated if you've had a little exposure to MATLAB or C style programming languages but geez if you hadn't... I definitely would have struggled with that last year.
As with the above - don't give up yet! You'll get into the swing of it. Google is your friend when it comes to getting hints about how to solve problems like those ones.
2008 - 2010 | Bachelor of Production @ Victorian College of the Arts
2013 - 2015 | Bachelor of Science @ UoM (Bioengineering Systems)
2016 - 2017 | Master of Engineering (Biomedical) @ UoM

BigAl

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1144
  • Respect: +43
  • School: Isik College
Re: Help with Computing- ENG1060
« Reply #4 on: April 10, 2014, 11:29:50 pm »
0
i saw the lab script couple of days ago and basically gave up..i am yet to complete mth2021 assignment, physics assignment..plus i completed 2 assignments this week...i think I'm just gonna sacrifice 2 marks
2012 ATAR:88.90

2013-2015 Bachelor of Aerospace Engineering and Science (dropped in 2015)
2015-2017 Bachelor of Engineering (Mechanical)